I need a code snippet for reading the mainboard uuid in c (in Windows XP and Windows Vista if there is a difference, else just for Windows).
+2
A:
This MSDN example shows how to use Windows Management Instrumentation APIs to read information about the local computer. It doesn't access the "UUID" (which I guess would be the motherboard's serial number) directly, but it should be possible to get there by modifying the example.
Also notice the Win32_BaseBoard WMI class, it has a SerialNumber
member.
unwind
2009-04-23 09:29:17