MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / DllMain

Function DllMain

LegacyUpdate/dllmain.cpp:34–53  ·  view source on GitHub ↗

DLL Entry Point

Source from the content-addressed store, hash-verified

32
33// DLL Entry Point
34BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) {
35 if (!PrxDllMain(hInstance, dwReason, lpReserved)) {
36 return FALSE;
37 }
38
39 switch (dwReason) {
40 case DLL_PROCESS_ATTACH:
41 g_hInstance = hInstance;
42 DisableThreadLibraryCalls(hInstance);
43 OpenLog();
44 break;
45
46 case DLL_PROCESS_DETACH:
47 g_hInstance = NULL;
48 CloseLog();
49 break;
50 }
51
52 return TRUE;
53}
54
55// Used to determine whether the DLL can be unloaded by OLE
56STDAPI DllCanUnloadNow(void) {

Callers

nothing calls this directly

Calls 2

OpenLogFunction · 0.85
CloseLogFunction · 0.85

Tested by

no test coverage detected