# MX\_GETWINFILEVERS > [HTML Version](mx_getwinfilevers.htm) _Added May 2019_ **xcall MIAMEX, MX\_GETWINFILEVERS, file, vmajor, vminor, vbuild, vpatch, \{,status\}** MX\_GETWINFILEVER (MIAMEX 194) retrieves version of a Windows DLL or executable. _file_ ([String](string.htm.md)) \[in\] Specifies the executable or DLL to retrieve the version info from. If no explicit path given, the search path is the same as it would be for loading that kind of file. _vmajor, vminor, vbuild, vpatch_ ([Num](num.htm.md)) \[out\] These will be updated with the parts of the version information from the specified file. All but _vmajor_ are optional. _status_ (Signed [Num](num.htm.md)) \[out\] (optional) Returns operation status: | **Value** | **Meaning** | |------|------| | 0 | success | | \-1 | unable to locate file | | \-2 | unable to read version resource | | \-3 | memory allocation failure | | \-4 | premature end of version string (must contain at least three parts - vmajor, vminor, vbuild) | **History** 2019 May, A-Shell 6.5.1661: Routine added to A-Shell.