Please, who can tell me how I can get a C/C++ routine that I can use to retrieve the hard disc serial number

As part of an anti-piracy scheme , I need a routine with which I can retrieve a system's hard disk serial number.
Just use Win32_PhysicalMedia Class from WMI and get SerialNumber property.
http://msdn.microsoft.com/en-us/library/aa394346(v=vs.85).aspx
Topic archived. No new replies allowed.