Platform SDK: Win32 API |
Use the GetVersionEx function to determine that a system is running Windows 95, OEM Service Release 2 or a later system release.
The GetVersionEx function fills the members of an OSVERSIONINFO data structure. If the dwPlatformId member of that structure is VER_PLATFORM_WIN32_WINDOWS, and the low word of the dwBuildNumber member is greater than 1080, the system is running Windows 95,OEM Service Release 2 or a later release.
MS-DOS applications can check for an MS-DOS version number of 7.1 or higher to determine that a system is running Windows 95,OEM Service Release 2 or a later release.