Any of you guys know how you get the Processor Serial Number in Visual C++ I found examples of how to do it in C# and VB using ManagementObject. But I can't seem to find a way to do it C++.
Thanks for the help,
Jeff Sholl
Any of you guys know how you get the Processor Serial Number in Visual C++ I found examples of how to do it in C# and VB using ManagementObject. But I can't seem to find a way to do it C++.
Thanks for the help,
Jeff Sholl
How do you get the Processor Serial Number in Visual C++?
T-C
Here's an article that's P-3 specific - some interesting code in there though.
http://www.codeproject.com/system/PIIISN.asp
merls
pani_wee
It's faked via a registry entry. By deleting the entry and querying for the MAC address, the true MAC ID can be obtained.
Matt Hohn
Well, System::Management::ManagementObject^ IS available in VC++ too (if you compile in .NET and add a reference to System.Management.dll), but I suppose you want to know how to do it in native C++. To program WMI in C++, you should see the article: http://www.codeproject.com/system/Using_WMI_in_Visual_C__.asp. The processorID is located in namespace: root\cimv2, class Win32_Processor.
However, before you can obtain the information from WMI, you'll need to know how to do COM programming in C++ (it's either COM programming or .NET programming).
Pranav Kandula
The codeproject article mentions that P4 doesn't expose the serial id, but i haven't been able to confirm that in other searches.
If your goal is to uniquely identify a machine, you could consider using its MAC address.
http://support.microsoft.com/kb/q118623/
Brian