test.cpp
来自「获取机器特征码」· C++ 代码 · 共 20 行
CPP
20 行
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
#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"));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?