We often look for some fixed serial numbers as an universal id. Usually we can use WMI class to retrieve some hardware ID as following:
Win32_BaseBoard
Win32_Processor: ProcessorId
Win32_BIOS: SerialNumber, ReleaseDate
Win32_MotherboardDevice: InstallDate
Win32_DiskDrive
We can refer to MSDN WMI C++ Application Examples for some VC++ samples for the usage.But not all of the above WMI class’ instance would return the requested info, it needs the support of the underlying hardware.
Tags: API, How-toPermalink: Code Library - How to get a fixed code for serial number
Subcribe the update with Google Reader.
One Response
CodeLibrary » How to get a fixed code for serial number(2)
January 10th, 2007 at 4:50 pm
1[...] I have post an article about “How to get a fixed code for serial number” at http://www.ucosoft.com/archives/51.html. In that article, I suggest you try WMI class to retrieve some hardware ID. But there is some limitation of this method. [...]
RSS feed for comments on this post · TrackBack URI
Leave a reply