Files
DUO-RDP/native/cp/DuoRdpCredentialProvider/dllmain.cpp
T

13 lines
294 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;
}