This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: How to detect win9 vs NT?
- To: N8TM at aol dot com
- Subject: Re: How to detect win9 vs NT?
- From: root at jacob dot remcomp dot fr (root)
- Date: Sat, 15 Aug 1998 08:08:45 +0200 (MET DST)
- Cc: gnu-win32 at cygnus dot com
You can detect where you are running with this simple function.
#include <windows.h>
int IsWindowsNT(void)
{
OSVERSIONINFO osv;
osv.dwOSVersionInfoSize = sizeof(osv);
GetVersionEx(&osv);
return(osv.dwPlatformId == VER_PLATFORM_WIN32_NT);
}
--
Jacob Navia Logiciels/Informatique
41 rue Maurice Ravel Tel 01 48.23.51.44
93430 Villetaneuse Fax 01 48.23.95.39
France
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".