473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Verifying 64 bit XP/2003 installation

Hi,

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

Thanks much

Nov 17 '05 #1
8 3238
Hi Saran!
Can any one please tell me how to verify programmatically how to find out
the OS version (64bit XP/2003)?


From a Win32-App?
See: GetVersionEx
http://msdn.microsoft.com/library/en...tversionex.asp

See: IsWow64Process
http://msdn.microsoft.com/library/en...w64process.asp
From an Win64-App:
If your app is running then you are on the correct OS!
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #2
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.

---
Joshua

"Jochen Kalmbach [MVP]" wrote:
Hi Saran!
Can any one please tell me how to verify programmatically how to find out
the OS version (64bit XP/2003)?


From a Win32-App?
See: GetVersionEx
http://msdn.microsoft.com/library/en...tversionex.asp

See: IsWow64Process
http://msdn.microsoft.com/library/en...w64process.asp
From an Win64-App:
If your app is running then you are on the correct OS!
--
Greetings
Jochen

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

Nov 17 '05 #3
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.

"Joshua" wrote:
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.

---
Joshua

"Jochen Kalmbach [MVP]" wrote:
Hi Saran!
Can any one please tell me how to verify programmatically how to find out
the OS version (64bit XP/2003)?


From a Win32-App?
See: GetVersionEx
http://msdn.microsoft.com/library/en...tversionex.asp

See: IsWow64Process
http://msdn.microsoft.com/library/en...w64process.asp
From an Win64-App:
If your app is running then you are on the correct OS!
--
Greetings
Jochen

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

Nov 17 '05 #4
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

"Jochen Kalmbach [MVP]" wrote:
Hi Saran!
Can any one please tell me how to verify programmatically how to find out
the OS version (64bit XP/2003)?


From a Win32-App?
See: GetVersionEx
http://msdn.microsoft.com/library/en...tversionex.asp

See: IsWow64Process
http://msdn.microsoft.com/library/en...w64process.asp
From an Win64-App:
If your app is running then you are on the correct OS!
--
Greetings
Jochen

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

Nov 17 '05 #5
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/
Nov 17 '05 #6
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

"Jochen Kalmbach [MVP]" wrote:
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/

Nov 17 '05 #7
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/
Nov 17 '05 #8
Yes Jochen,

That's what we are also trying to do.
"Jochen Kalmbach [MVP]" wrote:
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/

Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
by: Ming Zhu | last post by:
Hi, all, A strange problem. Don't know if anybody met it before or have a solution. I installed VS.NET 2002 before. Then I uninstalled VS.NET 2002 and install VS.NET 2003. The problem is...
0
by: Howard Kaikow | last post by:
I have a multiboot system with VS .NET 2002 Pro and VS .NET 2003 Pro installed in separate bootable systems. I installed VS .NET 2003 on 21 August 2003, but have used mostly VS .NET 2002 since...
1
by: Dave S | last post by:
I installed VS.NET 2003 and the framework on Windows XP Pro and it seems to have caused problems with VB6 projects which use ODBC data controls to connect to MS Access XP. I've also been told that...
1
by: Patrick Carroll | last post by:
Hi, I have a problem installing MS VS.NET 2003. First of all, I have all the pre-requisites installed and I have the requirements in system and in OS. (Win2000 SP3, etc..) Now, I had to...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
1
by: gerr | last post by:
Visual studio 2003 "HTTP/1.1 500 Internal Server Error" when trying to create a new Asp.net site with Visual Studio 2003 on localServer/IIS 5.1. Anyone have any new solutions or urls to point me...
1
by: gerr | last post by:
Visual studio 2003 "HTTP/1.1 500 Internal Server Error" when trying to create a new Asp.net site with Visual Studio 2003 on localServer XP Pro/IIS 5.1. Everything worked fine prior to installing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.