How to get Windows XP Edition?

T

Terry Olsen

Does anyone know how i can get the XP Edition through code (Home, Pro, Corp,
Retail, OEM, MCE)?

I would assume it would be in the registry key
HKLM\Software\Microsoft\Windows NT\CurrentVersion\LicenceInfo, but I could
be wrong...and I don't know how to decode it anyway.

Thanks.
 
S

Sanjib Biswas

Execute 'systeminfo' (without quotes) in the command prompt and then look
for OS Name.

Regards
Sanjib
 
S

Sanjib Biswas

Oops you asked programatically..Giving you an example using VB.Net:
My.Computer.Info.OSFullName
 
T

Terry Olsen

This tells me "Windows XP Professional" but doesn't tell me whether it is a
Corporate, Retail, or OEM version. I need to know this also.

Thanks.
 
C

C-Services Holland b.v.

Terry said:
This tells me "Windows XP Professional" but doesn't tell me whether it is a
Corporate, Retail, or OEM version. I need to know this also.

Thanks.

This makes me curious. What difference would it make to your program. I
can understand wanting to know if it's home or pro, but oem/corp/retail,
what's the point?
 
T

Terry Olsen

Writing a PC Auditing program. I want to include this in the information
presented to the user. Could be useful information at some point.
 
D

DJ Tuneman

look at the registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductID

If it's OEM, then "OEM" will be part of the product key. Whether it's
corporate or not is also determined by the key but I don't know the
algorithm to calculate that....sorry.






Terry Olsen said:
Writing a PC Auditing program. I want to include this in the information
presented to the user. Could be useful information at some point.
 
C

Cor Ligthert [MVP]

Terry,

I don't know if everything you need is in it,

But WMI with
Operating system
Operating system settings
OperatingSystem

Gives you a bunch of information about the used Operating System.

http://msdn.microsoft.com/library/d...ry/en-us/wmisdk/wmi/win32_operatingsystem.asp

I assume that you know how to process WMI.

Cor

Terry Olsen said:
Writing a PC Auditing program. I want to include this in the information
presented to the user. Could be useful information at some point.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top