OS Type

Hi,

During the start up of my application I need to determine
the type of OS WinNT/Win2K,
How can I do that?

v.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Call GetVersionEx to fill in an OSVERSIONINFO structure (see GetVersionEx in
help)

Check the dwPlatformId member of the structure for the value
VER_PLATFORM_WIN32_NT

This indicates an NT based system

check the dwMajorVersion member to determine the specific version of NT:
5 = Windows 2000
<5 = Windows NT

Haven’t tested this under Windows Xp yet so don’t know what difference that
will make.

Alun Carp
Driver Development Team Leader
Data Encryption Systems Limited

-----Original Message-----
From: Burkin, Valery [mailto:Valery.Burkin@de.origin-it.com]
Sent: 30 March 2001 09:19
To: NT Developers Interest List
Subject: [ntdev] OS Type

Hi,

During the start up of my application I need to determine
the type of OS WinNT/Win2K,
How can I do that?

v.



You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com