DLLMain.c (f2e20987) | DLLMain.c (9742fdb4) |
---|---|
1/* $NetBSD: DLLMain.c,v 1.3 2019/01/09 16:55:18 christos Exp $ */ | 1/* $NetBSD: DLLMain.c,v 1.4 2020/05/24 19:46:29 christos Exp $ */ |
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 | 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#include <config.h> 15 16#include <windows.h> | |
17#include <signal.h> | 14#include <signal.h> |
15#include <windows.h> |
|
18 19/* 20 * Called when we enter the DLL 21 */ | 16 17/* 18 * Called when we enter the DLL 19 */ |
22__declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL, 23 DWORD fdwReason, LPVOID lpvReserved) 24{ | 20__declspec(dllexport) BOOL WINAPI 21 DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { |
25 switch (fdwReason) { 26 /* 27 * The DLL is loading due to process 28 * initialization or a call to LoadLibrary. 29 */ 30 case DLL_PROCESS_ATTACH: 31 break; 32 --- 12 unchanged lines hidden (view full) --- 45 case DLL_PROCESS_DETACH: 46 break; 47 48 default: 49 break; 50 } 51 return (TRUE); 52} | 22 switch (fdwReason) { 23 /* 24 * The DLL is loading due to process 25 * initialization or a call to LoadLibrary. 26 */ 27 case DLL_PROCESS_ATTACH: 28 break; 29 --- 12 unchanged lines hidden (view full) --- 42 case DLL_PROCESS_DETACH: 43 break; 44 45 default: 46 break; 47 } 48 return (TRUE); 49} |
53 | |