dllmain.cpp
来自「通过手机蓝牙控制个人电脑上的幻灯片的播放」· C++ 代码 · 共 23 行
CPP
23 行
// DLLMain.cpp : Defines the entry point for the GINA DLL.
//
#include "stdafx.h"
// this is the one and only global variable we use, and it's implemented to be read-only
static HANDLE _hModule;
HMODULE GetMyModuleHandle() { return (HMODULE)_hModule; }
HINSTANCE GetMyInstance() { return (HINSTANCE)_hModule; }
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD reason,
LPVOID lpReserved
)
{
if (DLL_PROCESS_ATTACH == reason) {
_hModule = hModule;
DisableThreadLibraryCalls(GetMyModuleHandle());
}
return TRUE;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?