Subj : Re: Detecting Win XP To : borland.public.cpp.borlandcpp From : Martin Date : Wed Jun 16 2004 12:50 am Jogy wrote: , > >The VER_PLATFORM_WIN32_NT includes XP. > > >You must check the dwMajorVersion and dwMinorVersion members: > > >dwMajorVersion >Identifies the major version number of the operating system as follows. >Windows 95: 4 >Windows 98: 4 >Windows Me: 4 >Windows NT 3.51: 3 >Windows NT 4.0: 4 >Windows 2000: 5 >Windows XP: 5 >Windows .NET Server: 5 > > > >dwMinorVersion >Identifies the minor version number of the operating system as follows. >Windows 95: 0 >Windows 98: 10 >Windows Me: 90 >Windows NT 3.51: 51 >Windows NT 4.0: 0 >Windows 2000: 0 >Windows XP: 1 >Windows .NET Server: 1 > > > >Check this sample code from MSDN: >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getting_the_system_version.asp > > > > > > > >-- >Jogy >http://www.jogy.net/ last year I implemented this function in CBuilder 5 and tested this on XP en W2k (answers 5.1 and 5.0 = both correct) but the same function implemeted in Borland C++ 5.02 the answers: 5.0 for W2k (correct) but 7.2 for XP (?) .