Hi,
Here is how to get the window product id from the registry on
windows xp. Not sure where to find the cd key.
add to top of file
Imports Microsoft.Win32
Some code
Dim myReg As RegistryKey = Registry.LocalMachine
Dim MyRegKey As RegistryKey
Dim MyVal As String
MyRegKey = myReg.OpenSubKey("Software\Microsoft\Windows
NT\CurrentVersion")
MyVal = MyRegKey.GetValue("ProductID")
MyRegKey.Close()
txtRegistry.Text = String.Format("Product ID {0}", MyVal)
Ken
----------------
"Lumpierbritches" <lu*************@aol.com> wrote in message
news:20***************************@mb-m29.aol.com...
Is there an API call to get registry information for the CD Key in Windows
and
other applications that would be installed, if someone were to loose the
key or
misplace it. I'm attempting to write an application that will recover
these
keys for my internal use.
Any help would be appreciated. This is a second post, the first one,
someone
suggested calling Micrsoft, they'd give them one. I know this information
is in
the Registry on the computer, just not sure how to pull it to use on a
reinstallation.
Michael