📄 kernel.cpp
字号:
// kernel.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
extern "C" UCHAR GetAdapterNum();
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
UCHAR uNum=GetAdapterNum();
if(uNum==0)
{
MessageBox(NULL,"本机没有检测到网卡","Error",MB_OK);
return FALSE;
}
else if(uNum!=1)
{
MessageBox(NULL,"本程序只能处理一张网卡","Error",MB_OK);
return FALSE;
}
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -