UniqueId 
Data type: string
Access type: Read-onlyGlobally unique identifier for the processor. This identifier may only be unique within a processor family. This property is inherited from CIM_Processor.
ProcessorId 
Data type: string
Access type: Read-onlyProcessor 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.

解决方案 »

  1.   

    通过上述代码,可以取得processorid,但是无法获得uniqueid(返回空值),应该如何解析?
      

  2.   

    ProcessorId 
    Data type: string
    Access type: Read-only 
    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.UniqueId 
    Data type: string
    Access type: Read-only Globally unique identifier for the processor. This identifier may only be unique within a processor family. This property is inherited from CIM_Processor.详细情况参见:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_processor.asp