Article View: borland.public.cppbuilder.nativeapi
Article #11906Re: Detecting Windows XP
From: Remy Lebeau (TeamB)
Date: Sat, 10 Jan 2004 21:19
Date: Sat, 10 Jan 2004 21:19
19 lines
1624 bytes
1624 bytes
"Colin Maharaj" <cbm@cablenett.net> wrote in message
news:40003AB9.BC3AE8C6@cablenett.net...
> bool IsNT = (osv.dwPlatformId == VER_PLATFORM_WIN32_NT);
> //Win32Platform
If you want to differentiate between an NT platform in general and the NT4
OS specifically, you should test for version 4 as well:
bool IsNTPlatform = ( osv.dwPlatformId == VER_PLATFORM_WIN32_NT );
bool IsNT4 = ( (IsNTPlatform) && (osv.dwMajorVersion == 4) );
bool Is2000 = ( (IsNTPlatform) && (osv.dwMajorVersion == 5) &&
(osv.dwMinorVersion == 0) );
bool IsXP = ( (IsNTPlatform) && (osv.dwMajorVersion == 5) &&
(osv.dwMinorVersion == 1) );
Gambit
Technical Details
Message-ID:
<40006ae7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<i3arvvc0p3esp7mlj6rqt3b1s0fs529pgp@4ax.com> <40003AB9.BC3AE8C6@cablenett.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ce78bf60546b6fb5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-10 13:39:35 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <i3arvvc0p3esp7mlj6rqt3b1s0fs529pgp@4ax.com> <40003AB9.BC3AE8C6@cablenett.net> Subject: Re: Detecting Windows XP Date: Sat, 10 Jan 2004 13:19:09 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40006ae7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073769191 67.22.138.253 (10 Jan 2004 13:13:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail