How to know the serial number
-
Hi How to know the serial number of the processor, motherboard, Hd,.... of the PC where is running my application? I found that I can obtain the HD serial number with GetVolumeInformation(), but I have problems with the other devices. Can you help me? Have a nice code day ;)
-
Hi How to know the serial number of the processor, motherboard, Hd,.... of the PC where is running my application? I found that I can obtain the HD serial number with GetVolumeInformation(), but I have problems with the other devices. Can you help me? Have a nice code day ;)
Hello I thought so too, but it was wrong. The serial number you get from GetVolumeInformation() is the serial number Windows assigns when the drive is formatted. That's not the same as the manufacturers serial no. (Thanks Mr Alok :)) Check this respose to the same question: http://www.codeproject.com/script/comments/forums.asp?msg=1299791&forumid=1647&mode=all&userid=394282#xx1299774xx[^] Kakan
-
Hi How to know the serial number of the processor, motherboard, Hd,.... of the PC where is running my application? I found that I can obtain the HD serial number with GetVolumeInformation(), but I have problems with the other devices. Can you help me? Have a nice code day ;)
For cpu-id look for the assembly function cpuid.
-
Hello I thought so too, but it was wrong. The serial number you get from GetVolumeInformation() is the serial number Windows assigns when the drive is formatted. That's not the same as the manufacturers serial no. (Thanks Mr Alok :)) Check this respose to the same question: http://www.codeproject.com/script/comments/forums.asp?msg=1299791&forumid=1647&mode=all&userid=394282#xx1299774xx[^] Kakan
Thanks, but I have some problems to use the functions Win32_DiskDrive. I have to define these symbols using 'Cimwin32.mof'. But, How can I use this strange (for me :wtf:) files 'mof'? And also it needed namespace '\root\cimv2', but the compiler give some errors! If it is a problem, I'm writing a simple MFC doc\view application. Thank you Have a nice code day ;)
-
For cpu-id look for the assembly function cpuid.
-
Thanks, but I have some problems to use the functions Win32_DiskDrive. I have to define these symbols using 'Cimwin32.mof'. But, How can I use this strange (for me :wtf:) files 'mof'? And also it needed namespace '\root\cimv2', but the compiler give some errors! If it is a problem, I'm writing a simple MFC doc\view application. Thank you Have a nice code day ;)
_Russell_ wrote:
If it is a problem, I'm writing a simple MFC doc\view application.
this article will help http://www.codeproject.com/system/UsingWMI.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV