GetAppVersion method
Prototype
GetAppVersion lpszBuffer:LPSTR
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).
REMARKS: If lpszBuffer is not NULL, the GetAppVersion
method fills the buffer with a Unicode string if
the application is running as Unicode, or with an
ANSI string if not (see the IsAppUnicode method).
You can call GetAppVersionA
to get ANSI strings in Unicode applications,
or GetAppVersionW
to get Unicode strings in ANSI applications.