delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/15/12:37:29

From: root AT jacob DOT remcomp DOT fr (root)
Subject: Re: How to detect win9 vs NT?
15 Aug 1998 12:37:29 -0700 :
Message-ID: <m0z7ZWA-0002fdC.cygnus.gnu-win32@jacob.remcomp.fr>
References: <763e6ab2 DOT 35d43288 AT aol DOT com>
To: N8TM AT aol DOT com
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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019