如何获得硬件的唯一编码?如CPU、主版、硬盘等硬件的机器唯一编码!请各位高手指点一下!谢谢!

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/3550/3550939.xml?temp=.4189112
      

  2.   

    CPU的名称    
    // this code will get the cpu identifier from the windows registryusesRegistry;function CPUname: string;varReg: TRegistry;beginCPUname := '';Reg := TRegistry.Create;tryReg.RootKey := HKEY_LOCAL_MACHINE;if Reg.OpenKey('\Hardware\Description\System\CentralProcessor\0', False) thenCPUname := Reg.ReadString('Identifier');finallyReg.Free;end;end;