Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > MIAMEX

MX_GETWINFILEVERS

Scroll Prev Top Next More

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)  [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)  [out]

These will be updated with the parts of the version information from the specified file. All but vmajor are optional.

status  (Signed Num)  [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:  Function added to A-Shell.