GetAppVersion method
Syntax
Invoke GetAppVersion, lpszBuffer
Function
Retreives the version of the running application.
Parameters
lpszBuffer
Pointer to a buffer that will be filled with the version string. It can be NULL if you do not wish to retreive the string.
Return value
Eax returns the version number in the following format:
Bits 24-31: The major version (most significant byte)
Bits 16-23: The minor version
Bits 8-15: The version revision
Bits 0-7: The version subrevision (less significant byte)
The string returned in the
buffer pointed by lpszBuffer will be a
null-terminated
string having the format 00.00.00.0000 (i.e.
1.06.0.0015) plus the final null character, so the
buffer must be at least 14 TCHARS long (14 bytes for an ANSI
string or 28 bytes for a Unicode string).