I've been checking endlessly on MSDN and the net in general trying to find out how to get the computer's "C:" drive serial number and also the GUID.
Everything I've found seems to pointing to the System.Management library using the ManagementObject, but "ManagementObject" doesn't appear to be recognized by the IDE?!?
I've imported: System.Management, System.Management.Instrumentation, Microsoft.Win32 and System.IO, but ManagementObject is still coming up as an error.
I'm aware I can simply access the registry to get the GUID, but can anyone simply give me the code to access these 2 elements please...
I'm using VS2010 under Windows 7 64-Bit.
Any help would be greatly appreciated.
Thanks.
Everything I've found seems to pointing to the System.Management library using the ManagementObject, but "ManagementObject" doesn't appear to be recognized by the IDE?!?
I've imported: System.Management, System.Management.Instrumentation, Microsoft.Win32 and System.IO, but ManagementObject is still coming up as an error.
I'm aware I can simply access the registry to get the GUID, but can anyone simply give me the code to access these 2 elements please...
I'm using VS2010 under Windows 7 64-Bit.
Any help would be greatly appreciated.
Thanks.