1 /*
2 * Copyright (C) 2001, 2004, 2007, 2016 Internet Systems Consortium, Inc. ("ISC")
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9
10 #include <windows.h>
11 #include <signal.h>
12
13 /*
14 * Called when we enter the DLL
15 */
DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)16 __declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
17 DWORD fdwReason, LPVOID lpvReserved)
18 {
19 switch (fdwReason) {
20 /*
21 * The DLL is loading due to process
22 * initialization or a call to LoadLibrary.
23 */
24 case DLL_PROCESS_ATTACH:
25 break;
26
27 /* The attached process creates a new thread. */
28 case DLL_THREAD_ATTACH:
29 break;
30
31 /* The thread of the attached process terminates. */
32 case DLL_THREAD_DETACH:
33 break;
34
35 /*
36 * The DLL is unloading from a process due to
37 * process termination or a call to FreeLibrary.
38 */
39 case DLL_PROCESS_DETACH:
40 break;
41
42 default:
43 break;
44 }
45 return (TRUE);
46 }
47
48