Solved

CPU/HDD Serial Number

Posted on 2002-07-10
4
445 Views
Last Modified: 2012-06-27
How would I get the CPU and HDD Serial numbers?
0
Comment
Question by:Irax
  • 3
4 Comments
 

Accepted Solution

by:
rameshnut earned 50 total points
ID: 7142750
there is NO specific NUMBER to uniquely identify a CPU (i am sorry for this unfortunate answer!) , but you can have a number associated with CPU that identifies its class (like, pentium 2, 3, 4 or celeron - but this number is not specific a single CPU but to a class of CPU's mentioned above)

HDD number is easy to obtain. you have the GetVolumeInformation() function in win SDK.

ramesh
0
 
LVL 30

Expert Comment

by:Axter
ID: 7144665
>>How would I get the CPU and HDD Serial numbers?
MS method for this was to get the Network card number.  All network cards have a unique ID number.
0
 
LVL 30

Expert Comment

by:Axter
ID: 7144677
>>How would I get the CPU
See:
Q118623 - HOWTO: Get the MAC Address for an Ethernet Adapter  

http://support.microsoft.com/support/kb/articles/q118/6/23.asp

A sample use of the CPUID opcode is shown in:

PRB: VC++ Debugger Won't Support Pentium-Specific Instructions
ID: Q121368

http://support.microsoft.com/support/kb/articles/Q121/3/68.asp

0
 
LVL 30

Expert Comment

by:Axter
ID: 7144688
Disregard last link.  It seems it has been removed from MS web site.

Q118623 is still good:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q118623
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now