MCPcopy Create free account
hub / github.com/dds-bridge/dds / DllMain

Function DllMain

library/src/dds.cpp:32–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 [[maybe_unused]] LPVOID lpReserved);
31
32extern "C" BOOL APIENTRY DllMain(
33 HMODULE hModule,
34 DWORD ul_reason_for_call,
35 LPVOID lpReserved)
36{
37
38 if (ul_reason_for_call == DLL_PROCESS_ATTACH)
39 SetMaxThreads(0);
40 else if (ul_reason_for_call == DLL_PROCESS_DETACH)
41 {
42 CloseDebugFiles();
43 FreeMemory();
44#ifdef DDS_MEMORY_LEAKS_WIN32
45 _CrtDumpMemoryLeaks();
46#endif
47 }
48
49 hModule;
50 lpReserved;
51
52 return 1;
53}
54
55#elif (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) || defined(__MAC_OS_X_VERSION_MAX_ALLOWED))
56

Callers

nothing calls this directly

Calls 3

SetMaxThreadsFunction · 0.85
CloseDebugFilesFunction · 0.85
FreeMemoryFunction · 0.85

Tested by

no test coverage detected