GetVersion

Syntax

WORD GetVersion( )

This function returns the current version number of Windows.

This function has no parameters.

Return Value

The return value specifies the major and minor version numbers of Windows. The high-order byte specifies the minor version (revision) number; the low-order byte specifies the major version number.