Dave's Brain

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

Date: 1997dec16
Platform: win32


Q.  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; }

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.