Design Pattern Examples
Overview of object-oriented design patterns
dllmain.c
Go to the documentation of this file.
1
4
5#include "pch.h"
6
7#ifdef _MSC_VER
13BOOL APIENTRY DllMain( HMODULE hModule,
14 DWORD ul_reason_for_call,
15 LPVOID lpReserved
16 )
17{
18 (void)hModule; // reference it to avoid compiler warning
19 (void)lpReserved; // reference it to avoid compiler warning
20
21 switch (ul_reason_for_call)
22 {
23 case DLL_PROCESS_ATTACH:
24 case DLL_THREAD_ATTACH:
25 case DLL_THREAD_DETACH:
26 case DLL_PROCESS_DETACH:
27 break;
28 }
29 return TRUE;
30}
31#endif
Header for precompiled headers. Used only on Windows.