Please enable JavaScript to view this site.

A-Shell Development History

New MIAMEX function MX_GETWINFILEVER (194) retrieves version of a Windows DLL or executable:

xcall MIAMEX, MX_GETWINFILEVERS, file$, vmajor, vminor, vbuild, vpatch, status

where:

file  (Str) [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)