www.pudn.com > NIC_HD_REG.rar > Test.cpp
#include#include #include #include "..\pjsecure.h" void main() { TCHAR pszNic[13]; if (GetNicAddress(pszNic, 13)) _tprintf(_T("A network card was detected on your machine with NIC address %s\n"), pszNic); else _tprintf(_T("Could not determine the NIC address on this machine\n")); DWORD dwSerialNumber; if (GetCDriveSerialNumber(&dwSerialNumber)) _tprintf(_T("the serial number of the c drive on your machine is %x\n"), dwSerialNumber); else _tprintf(_T("failed to retreive the serail number\n")); }