看看这个贴子:获得CPU的序列号
http://www.csdn.net/expert/TopicView.asp?id=16860

解决方案 »

  1.   

    MAC地址可以用NetBois函数:
    CHAR Netbios(
      PNCB pncb   // pointer to the network control block
    );typedef struct _NCB { // ncb 
        UCHAR  ncb_command;      //置为NCBASTAT
        UCHAR  ncb_retcode;      //0,no use
        UCHAR  ncb_lsn;          //0,no use
        UCHAR  ncb_num;          //0,no use
        PUCHAR ncb_buffer;       //传入&AdapterStatus (_ADAPTER_STATUS AdapterStatus;)
        WORD   ncb_length;       //sizeof(_ADAPTER_STATUS)
        UCHAR  ncb_callname[NCBNAMSZ];  //Application Name 
        UCHAR  ncb_name[NCBNAMSZ];     //no use
        UCHAR  ncb_rto;        //no use
        UCHAR  ncb_sto;        //no use
        void (*ncb_post) (struct _NCB *); 
        UCHAR  ncb_lana_num;        //0,0-Base Adapter Number
        UCHAR  ncb_cmd_cplt;        //no use
        UCHAR  ncb_reserve[10];     //no use
        HANDLE ncb_event;           //no use
    } NCB;