Verifying 64 bit XP/2003 installation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Can any one please tell me how to verify programmatically how to find out
the OS version (64bit XP/2003)?

Thanks much
 
The problem you can run into with the RC version of Microsoft Windows XP
Professional x64 edition version 2003 is it will return the same major and
minor version number as Microsoft Windows Server 2003 (maj 5, min 2) rather
than the typical XP major and minor version numbers (maj 5, min 1).

This may have been fixed with the Gold version of MS Win XP x64 but I
haven't had the opportunity to test it yet.
 
Yes Joshua, what you mentioned is true but you can check for wProductType
after checking the version number(5.2) which is true only in 64bit XP(false
in 2003 server). I tried out both and it seems that iswon64process seems to
be a better choice.
 
Thanks much Jochen, second choice seems to be better than first one since
Minor version in Windows XP 64 bit and Windows Server 2003 is 2.

Thanks again
 
Hi Saran!
Thanks much Jochen, second choice seems to be better than first one since
Minor version in Windows XP 64 bit and Windows Server 2003 is 2.

Second choice is only better if you only want to know if you are running
an x64.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Hi Jochen,

Can you explain me bit more? I didn't get what you meant by "if you are
running an x64"?

Here is what we want to do:

Most of our executables are 32 bit and only few are 64 bit and we would like
to programmatically launch 64 bit exe if the OS is 64 bit.

Thanks much
 
Hi Saran!
Here is what we want to do:

Most of our executables are 32 bit and only few are 64 bit and we would like
to programmatically launch 64 bit exe if the OS is 64 bit.

For this you need at least 2 exes: App(32).exe and App64.exe

The easiest chooice would be: Always start app(32).exe This app can find
out if the OS is x64 (with the IsWow64Process function). Then it can
launch the app64.exe.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top