Annotation of src/external/mpl/bind/dist/lib/dns/win32/DLLMain.c, Revision 1.2
1.2 ! christos 1: /* $NetBSD: DLLMain.c,v 1.1.1.5 2014/12/10 03:34:43 christos Exp $ */
1.1 christos 2:
3: /*
4: * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5: *
6: * This Source Code Form is subject to the terms of the Mozilla Public
7: * License, v. 2.0. If a copy of the MPL was not distributed with this
8: * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9: *
10: * See the COPYRIGHT file distributed with this work for additional
11: * information regarding copyright ownership.
12: */
13:
14:
15: #include <windows.h>
16: #include <signal.h>
17:
18: /*
19: * Called when we enter the DLL
20: */
21: __declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
22: DWORD fdwReason, LPVOID lpvReserved)
23: {
24: switch (fdwReason) {
25: /*
26: * The DLL is loading due to process
27: * initialization or a call to LoadLibrary.
28: */
29: case DLL_PROCESS_ATTACH:
30: break;
31:
32: /* The attached process creates a new thread. */
33: case DLL_THREAD_ATTACH:
34: break;
35:
36: /* The thread of the attached process terminates. */
37: case DLL_THREAD_DETACH:
38: break;
39:
40: /*
41: * The DLL is unloading from a process due to
42: * process termination or a call to FreeLibrary.
43: */
44: case DLL_PROCESS_DETACH:
45: break;
46:
47: default:
48: break;
49: }
50: return (TRUE);
51: }
52:
CVSweb <webmaster@jp.NetBSD.org>