MCPcopy Create free account
hub / github.com/beefytech/Beef / DllMain

Function DllMain

BeefRT/dbg/dbgmain.cpp:5–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#ifdef BF_PLATFORM_WINDOWS
4
5BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
6{
7 switch (fdwReason)
8 {
9 case DLL_PROCESS_ATTACH:
10 gBFGC.ThreadStarted();
11 break;
12 case DLL_THREAD_ATTACH:
13 gBFGC.ThreadStarted();
14 break;
15 case DLL_THREAD_DETACH:
16 gBFGC.ThreadStopped();
17 break;
18 case DLL_PROCESS_DETACH:
19 gBFGC.ThreadStopped();
20 break;
21 }
22
23 return TRUE;
24}
25
26#endif

Callers

nothing calls this directly

Calls 2

ThreadStartedMethod · 0.45
ThreadStoppedMethod · 0.45

Tested by

no test coverage detected