C++获取系统的Mac地址
摘要:
C++获取系统的Mac地址,加上libnetapi32.a#include #include #include #include /*Dev C++ -> include libnetapi32.aBCC 5.5 or VC++ -> #pragma comment(lib,"netapi32.lib")*/typedef struct _ASTAT_{ ADAPTER_STATUS adapt; NAME_BUFFER NameBuff [30];} ASTAT, *PASTAT;void getMac(char * mac){ ASTAT Adapter; 阅读全文
posted @ 2014-03-05 11:59 鸳都学童 阅读(2462) 评论(0) 推荐(0) 编辑