How to get Windows XP Edition?

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
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.
 
Execute 'systeminfo' (without quotes) in the command prompt and then look
for OS Name.

Regards
Sanjib
 
Oops you asked programatically..Giving you an example using VB.Net:
My.Computer.Info.OSFullName
 
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.
 
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?
 
Writing a PC Auditing program. I want to include this in the information
presented to the user. Could be useful information at some point.
 
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.
 
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.
 
Back
Top