Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WinQueryVersion (1.2)
◄Function Group► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINWINDOWMGR
ULONG WinQueryVersion(hab)
HAB hab; /* handle of the anchor block */
The WinQueryVersion function returns the version and revision character of
MS OS/2.
Parameter Description
────────────────────────────────────────────────────────────────────────────
hab Identifies an anchor block.
Return Value
The return value is the version number, consisting of the major and minor
version number and the revision character. The low word contains the minor
version in the low byte and the major version in the high byte. The high
word contains the revision character in the low byte. You can use the
following macros to extract this information:
Macro Result
────────────────────────────────────────────────────────────────────────────
LOBYTE(LOUSHORT(return)) Retrieves the major version number.
HIBYTE(LOUSHORT(return)) Retrieves the minor version number.
LOUCHAR(HIUSHORT(return)) Retrieves the revision character.
See Also
DosGetVersion, LOBYTE, LOUCHAR, LOUSHORT, HIBYTE, HIUSHORT
♦