GetVersion

  DWORD GetVersion(VOID)    

The GetVersion function returns the current version number of Windows and the current version of the operating system.

Parameters

This function has no parameters.

Return Value

The return value specifies the major and minor version numbers of Windows.

The low word contains the version of Windows. The high byte specifies the minor version (revision) number as a hexadecimal number. The low byte specifies the major version number as a hexadecimal number.