Hello,
Proably not the correct way, but you can use the MPC designator found in
the productid field
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductID=xxxxx-xxx-xxxxxxx-xxxxx
MPC is the first 5 digits
MPC is Microsoft Product Code and is unique per SKU
Windows XP Professional x64 edition is 76588
This lists the Windows Server 2003 MPC codes:
889713 How to determine the channel that your copy of Windows Server 2003
was obtained through
http://support.microsoft.com/default...b;EN-US;889713
Thanks,
Darrell Gorter[MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
>From: "Tony Sperling" <>
>References: <634609FA-0B4B-4ECA-84A4->
<>
<03169ABE-7A8B-4741-A461->
>Subject: Re: Best Way to get version from registry?
>Date: Sat, 9 Jun 2007 19:37:13 +0200
>Lines: 23
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896
>X-Antivirus: avast! (VPS 000748-2, 09-06-2007), Outbound message
>X-Antivirus-Status: Clean
>Message-ID: <>
>Newsgroups: microsoft.public.windows.64bit.general
>NNTP-Posting-Host: 82.143.202.10
>Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP02.phx.gbl
>Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.windows.64bit.general:7230
>X-Tomcat-NG: microsoft.public.windows.64bit.general
>
>Well, I also guess we do not really know what variable in the reg. 'ver' is
>reading - I had a look and if it reads
>
>
>HK_L_M/Software/Microsoft/WindowsNT/Currentversion/CurrentBuildNumber
>
>then that is '3790' on my side. However, there is also a
>
> HK_L_M/Software/Microsoft/WindowsNT/CurrentVersion/CurrentVersion
>(No - my keyboard isn't stuttering. Not this time!) that says:
>
>'5.2', which would conform to my idea of the 'Major/Minor' version format I
>was thinking about. It is also a 'standard string'.
>
>What is that saying on your Server2003, I wonder?
>
>I wouldn't be surprised if Win2k is '5.0' - XP '5.1', as an example.
>
>
>Tony. . .
>
>
>
>