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

Function DllMain

ProgramLog/dllmain.cpp:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "log.hpp"
8
9BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID) noexcept
10{
11 switch (fdwReason)
12 {
13 case DLL_PROCESS_ATTACH:
14 DisableThreadLibraryCalls(hinstDLL);
15 break;
16
17 case DLL_PROCESS_DETACH:
18 spdlog::shutdown();
19 break;
20 }
21
22 return TRUE;
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected