#pragma once
#include  <windows.h>
#include <objbase.h>
#include <comdef.h>

#define MACADDRESS_BYTELEN      6
#define MACADDRESS_CHARSLEN     32

class MyMacAddress
{
public:
	MyMacAddress(void);
	~MyMacAddress(void);
public:
	int WMI_GetMacAddress( int iQueryType, int iSize);
	static void GetMacReallyValue(BYTE  MacAddress[MACADDRESS_BYTELEN], char szRealMacAddr[MACADDRESS_CHARSLEN]);

protected:
	static BOOL GetPNPDeviceID(const TCHAR *PNPDeviceID);
	void MacCoUninitialize(HRESULT hres);
public:
	static BYTE  PermanentAddress[MACADDRESS_BYTELEN];
	static BYTE  MACAddress[MACADDRESS_BYTELEN];
};
