Programming Tips - Old - Win32: How can I tell if my program is running on Windows 95 or NT?

Date: 1997dec16 Platform: win32 Q. Win32: How can I tell if my program is running on Windows 95 or NT? A. Sometimes you have to know if you are running under Windows 95 or Windows NT. The Microsoft example code to do this is really huge. This is how I do it:
BOOL IsWindowsNT() { return ::GetVersion() < 0x80000000; }
2025 note: this doesn't really apply any more because there is no real need to see if a system is windows95 or NT.