28 lines
553 B
C++
28 lines
553 B
C++
#include <string>
|
|
#include "MasterHardDiskSerial.h"
|
|
|
|
#pragma once
|
|
using namespace std;
|
|
class cPhysicsInfoUtils
|
|
{
|
|
public:
|
|
cPhysicsInfoUtils(void);
|
|
~cPhysicsInfoUtils(void);
|
|
|
|
public:
|
|
//获取硬盘序列号
|
|
//BOOL GetSerialNum(string& pSerialNum);//调试不可用
|
|
BOOL GetHardDiskSerial(string& pSerial);
|
|
|
|
//获取MAC地址
|
|
BOOL GetMAC(string& pMac);
|
|
|
|
//获取CPU ID
|
|
BOOL GetCPU_iD(string& pCPU_iD);
|
|
|
|
private:
|
|
void getcpuid(unsigned int *CPUInfo, unsigned int InfoType);
|
|
void getcpuidex(unsigned int *CPUInfo, unsigned int InfoType, unsigned int ECXValue);
|
|
};
|
|
|