13 lines
295 B
C++
13 lines
295 B
C++
#include <windows.h>
|
|
|
|
HMODULE g_hModule = nullptr;
|
|
long g_cRef = 0;
|
|
|
|
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID) {
|
|
if (ul_reason_for_call == DLL_PROCESS_ATTACH) {
|
|
g_hModule = hModule;
|
|
DisableThreadLibraryCalls(hModule);
|
|
}
|
|
return TRUE;
|
|
}
|