473,406 Members | 2,273 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,406 software developers and data experts.

Registry entry to determine OS Version

I want to know if there is a registry entry that will tell me if a computer is using XP Pro or XP Home? The same with vista.

I am familiar with HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion but it doesn't say the specific version.

Thanks
Oct 28 '08 #1
6 22343
Banfa
9,065 Expert Mod 8TB
Why are you looking for a way to get this information from the registry?

I do not think it is in there, logically it would not be it is not a piece of configuration information it is an intrinsic attribute of the compiled software.

If you are writing a program and need to get the windows version then call the function GetVersionEx (look it up on MSDN).

In another situation see if you can parse the output of the command
ver
Oct 29 '08 #2
spycon
5
i think command "ver" would be the best solution to know which version of windows you are using
Oct 29 '08 #3
Why are you looking for a way to get this information from the registry?

I do not think it is in there, logically it would not be it is not a piece of configuration information it is an intrinsic attribute of the compiled software.

If you are writing a program and need to get the windows version then call the function GetVersionEx (look it up on MSDN).

In another situation see if you can parse the output of the command
ver
Thanks for your reply.

I've gone the GetVersionEx route, but I did not see XP Home or XP Pro in any of the values. So are you saying that it is not possible to find this? I just need to know one way or the other. I have a VB6 program that needs to turn on or off a flag based on if they are using home or pro.
Oct 29 '08 #4
Thanks for your reply.

I've gone the GetVersionEx route, but I did not see XP Home or XP Pro in any of the values. So are you saying that it is not possible to find this? I just need to know one way or the other. I have a VB6 program that needs to turn on or off a flag based on if they are using home or pro.
Nevermind....I found this article that had exactly what I was looking for:

http://vbnet.mvps.org/index.html?code/helpers/iswinversion.htm
Oct 29 '08 #5
Banfa
9,065 Expert Mod 8TB
The wSuiteMask member of the OSVERSIONINFOEX structure returned by GetVersionEx will have the bit VER_SUITE_PERSONAL set for XP home Edition.

Read the full description of OSVERSIONINFOEX on MSDN
Oct 29 '08 #6
AmberJain
884 Expert 512MB
Hello,

I've gone the GetVersionEx route, but I did not see XP Home or XP Pro in any of the values. So are you saying that it is not possible to find this?
Hello,

I think that you got the solution but still I am posting this....
For the registry key...........
Expand|Select|Wrap|Line Numbers
  1. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
.....you can get only following Versions:
Microsoft Windows 2000 (not Pro and Server)
Microsoft Windows XP (NotHome and Pro)
Microsoft Windows Server 2003

So are you saying that it is not possible to find this?
Nope. There must be some registry entry which must contain this information. And so, if you want I will search google for you (but I dont think that you need this anymore :)

Hope this helps..........
AmbrNewlearner
Oct 29 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: steve b | last post by:
I need to add a registry entry to internet explorer (I'm adding a right click menu item) with vb.net setup program. Anyone know how to do that? Thanks!
1
by: rdavis7408 | last post by:
I have a database that has a form that opens a report using date parameters. I have been using it for six months and last week I began to get the following Error Message: "File sharing lock...
2
by: Fuse | last post by:
From reading MSDN, I am unable to discern what the format of the registry entry/key/value/whatever needs to look like for registering a DHCP Callout Dll. The documentation simply states ...
3
by: ray well | last post by:
hi, what registry entry would i look up to find out if the .net framework 1.1 is installed on a machine? do registry entries know the difference between .net 1.1 and 1.0, my understanding is...
5
by: Tull Clancey | last post by:
Hi. Does anyone have a way of creating a registry entry during the VB Net 2003 installation process? I can't rely on the application adding the entry on first run. Any help gratefully...
2
by: Bill Nguyen | last post by:
I ran into Excel alphanumeric data column import using ADO.NEt. Upon searching, I found this solution, but it requires edit a registry entry as follow:...
1
by: Leonid Lastovkin | last post by:
I would like to be able to find out which version of Microsoft Office is installed on the host computer. How can I implement this query in C#? I do not need the whole program, but a relevant code...
2
by: =?Utf-8?B?b3VtYWxvdQ==?= | last post by:
Help - I ran a file from Kelly's Korner, regopen.vbs and now my taskbar is permanantly locked. how can I undo this registry entry? -- oumalou
5
by: armantobe | last post by:
How To Made A Entry Of An Application In Registry Placed At Windows\System32 Directory? What To Write So That It Can Detect Windows Drive And Make Entry According TO That. e.g. Application...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.