|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to get Windows XP Edition?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 Show quoteHide quote "Terry Olsen" <tolse***@hotmail.com> wrote in message news:%23fh4jQJkGHA.4828@TK2MSFTNGP04.phx.gbl... > 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. > Oops you asked programatically..Giving you an example using VB.Net:
My.Computer.Info.OSFullName Show quoteHide quote "Sanjib Biswas" <sanjib.bis***@ieee.org> wrote in message news:eOBw$UJkGHA.3484@TK2MSFTNGP03.phx.gbl... > Execute 'systeminfo' (without quotes) in the command prompt and then look > for OS Name. > > Regards > Sanjib > > "Terry Olsen" <tolse***@hotmail.com> wrote in message > news:%23fh4jQJkGHA.4828@TK2MSFTNGP04.phx.gbl... >> 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. >> > > 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. Show quoteHide quote "Sanjib Biswas" <sanjib.bis***@ieee.org> wrote in message news:uw40aaJkGHA.1272@TK2MSFTNGP03.phx.gbl... > Oops you asked programatically..Giving you an example using VB.Net: > My.Computer.Info.OSFullName > > "Sanjib Biswas" <sanjib.bis***@ieee.org> wrote in message > news:eOBw$UJkGHA.3484@TK2MSFTNGP03.phx.gbl... >> Execute 'systeminfo' (without quotes) in the command prompt and then look >> for OS Name. >> >> Regards >> Sanjib >> >> "Terry Olsen" <tolse***@hotmail.com> wrote in message >> news:%23fh4jQJkGHA.4828@TK2MSFTNGP04.phx.gbl... >>> 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. >>> >> >> > > Terry Olsen wrote:
> This tells me "Windows XP Professional" but doesn't tell me whether it is a This makes me curious. What difference would it make to your program. I > Corporate, Retail, or OEM version. I need to know this also. > > Thanks. can understand wanting to know if it's home or pro, but oem/corp/retail, what's the point? -- Rinze van Huizen C-Services Holland b.v Writing a PC Auditing program. I want to include this in the information
presented to the user. Could be useful information at some point. Show quoteHide quote "C-Services Holland b.v." <c**@REMOVEcsh4u.nl> wrote in message news:ac6dnbQYS-xqMA_ZRVnyhQ@zeelandnet.nl... > Terry Olsen wrote: > >> 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? > > -- > Rinze van Huizen > C-Services Holland b.v 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. Show quoteHide quote "Terry Olsen" <tolse***@hotmail.com> wrote in message news:%23Xt0g1UkGHA.4368@TK2MSFTNGP03.phx.gbl... > 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-Services Holland b.v." <c**@REMOVEcsh4u.nl> wrote in message > news:ac6dnbQYS-xqMA_ZRVnyhQ@zeelandnet.nl... >> Terry Olsen wrote: >> >>> 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? >> >> -- >> Rinze van Huizen >> C-Services Holland b.v > > 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/default.asp?url=/library/en-us/wmisdk/wmi/win32_operatingsystem.asp I assume that you know how to process WMI. Cor Show quoteHide quote "Terry Olsen" <tolse***@hotmail.com> schreef in bericht news:%23Xt0g1UkGHA.4368@TK2MSFTNGP03.phx.gbl... > 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-Services Holland b.v." <c**@REMOVEcsh4u.nl> wrote in message > news:ac6dnbQYS-xqMA_ZRVnyhQ@zeelandnet.nl... >> Terry Olsen wrote: >> >>> 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? >> >> -- >> Rinze van Huizen >> C-Services Holland b.v > >
How to Send an SMS
URI IsFile Streaming a file to text? How to force upper case in a DataGridView column? Dealing with NULL values in Integer fields Mulples threads and impersonation Handle pointers from delphi client to a vb.net dll VB.net 2005 splash screen Count Rcords "Optional ByVal SomeDate As Date = Nothing" in VB2005 |
|||||||||||||||||||||||