This function retrieves the CPU identifier and the CPU name from the PC.
In C++Builder, Visual C++, and Delphi. this is a string terminating with Null. In Visual Basic, this is a string of specified size.
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The PK3QueryCpuID function retrieves the CPU identifier and CPU name from the PC.
The PK3QueryCpuID function is disabled if the PK3Initialize function has not been executed.
IMPORTANT: If the PK3QueryCpuID function is used on a PC with multiple physical CPUs, the CPU identifier retrieved may not be constant. Because of this, after a password has been issued to unlock an application and that application has been uninstalled and reinstalled, there are cases where the previously generated password will no longer unlock the application. (When CPU is included as one condition for identifying a PC)
The CPU identifier will be in the following order: "Manufacturer number" + "3DNow Command Set Support" + "Stepping ID" + "Model" + "Command Family" + "MMX Support" + "Number contained in CPU Name". The various items will be seperated by hyphens "-". The number of digits in the CPU identifier will be different depending on the CPU.
Regarding the "Number contained in the CPU name": if the CPU name is "Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz", then the number contained in the CPU name would be 73770340 and this number is added to the end of the CpuID.