Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
dear all
please, i would like to know
1- what is the cpuid of the computer?
2- what is the instruction to get it in c++,c?
3- is each computer has unique cpuid?
with my great thanks
Posted

Check these Windows APIs for Win32_Processor Class.
Update:
How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...) - WMI implementation in C# with useful info.
If only for cpuid see MSDN sample here.
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 30-Jun-11 19:05pm    
Useful, should resolve the problem, my 5.
--SA
Sergey Chepurin 1-Jul-11 4:57am    
Thank you, but you don't look like in need of cpuid info.
Well, strangely enough, it's this[^].
 
Share this answer
 
Comments
Albert Holguin 29-Jun-11 15:09pm    
That answer actually has most of the things OP is looking for...
Sergey Alexandrovich Kryukov 30-Jun-11 19:05pm    
Strangely enough, a 5. :-)
--SA
Richard MacCutchan 1-Jul-11 4:23am    
Thanks, :)
1. pass
2. pass

3. Nope - Processor Serial Number (call with EAX = 3)
that was one of the intended pieces of information that may be retrieved with this instruction. However privacy concerns forced it to no longer be implemented. AMD don't implement this feature.
(Even when it was, the user had to have enabled it in the bios - so not much good for protection schemes)
 
Share this answer
 
Comments
Albert Holguin 29-Jun-11 21:02pm    
sounds like you went to the wikipedia link and read it..lol
enhzflep 29-Jun-11 21:12pm    
Ding, ding, ding!
We've got a winner.

Crap! There was a link here for that? :wtf:
I'd forgotten what the needed value for eax was, and had hoped to have my memory refreshed on when the hoo-har re:privacy had happened.

1 outta 2's not bad I suppose..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900