Use the GetVersionEx function to determine that a system is running Windows 95, OEM Service Release 2 or a later release of the Windows 95 operating system.
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 of Windows 95.
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 of Windows 95.