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