CPU ID

This forum is for general support of Xbase++
Post Reply
Message
Author
User avatar
unixkd
Posts: 575
Joined: Thu Feb 11, 2010 1:39 pm

CPU ID

#1 Post by unixkd »

Hi all

I need a function to determine CPU ID of a PC

Thanks

Joe

Leon Berger
Posts: 36
Joined: Thu Jan 28, 2010 2:30 pm

Re: CPU ID

#2 Post by Leon Berger »

Reg key HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS
Best regards
Leon

User avatar
unixkd
Posts: 575
Joined: Thu Feb 11, 2010 1:39 pm

Re: CPU ID

#3 Post by unixkd »

Hi Leon Berger,

How ?

I don't understand

Joe.

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: CPU ID

#4 Post by Auge_Ohr »

hi,

try WMI : Win32_Processor
Attachments
Win32_Processor.zip
(1.42 KiB) Downloaded 1089 times
greetings by OHR
Jimmy

psc
Posts: 5
Joined: Thu Sep 29, 2016 11:48 am

Re: CPU ID

#5 Post by psc »

If you're looking for the processor serial number, I think that was only available on Pentium III's, and is no longer available in modern Intel CPU's.
The ProcessorID field in Auge_Ohr's excellent program is actually the processor feature set.
ProcessorId
Data type: string
Access type: Read-only
Qualifiers: MappingStrings ("SMBIOS|Type 4|Processor Information|Processor ID")
Processor information that describes the processor features. For an x86 class CPU, the field format depends on the processor support of the CPUID instruction. If the instruction is supported, the property contains 2 (two) DWORD formatted values. The first is an offset of 08h-0Bh, which is the EAX value that a CPUID instruction returns with input EAX set to 1. The second is an offset of 0Ch-0Fh, which is the EDX value that the instruction returns. Only the first two bytes of the property are significant and contain the contents of the DX register at CPU reset—all others are set to 0 (zero), and the contents are in DWORD format.
This value comes from the Processor ID member of the Processor Information structure in the SMBIOS information.
Excerpt from https://en.wikipedia.org/wiki/CPUID#EAX ... ial_Number

If you want the CPU features, like the processor model, speed, etc. then Auge_Ohr's program is just right. If you want something like the old PIII processor serial number, than this is probably not what you need.

psc

Post Reply