"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/lib/isc/win32/DLLMain.c" (4 Sep 2020, 1078 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "DLLMain.c" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) 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  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 #include <stdio.h>
   13 #include <windows.h>
   14 
   15 /*
   16  * Called when we enter the DLL
   17  */
   18 __declspec(dllexport) BOOL WINAPI
   19     DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
   20     switch (fdwReason) {
   21     /*
   22      * The DLL is loading due to process
   23      * initialization or a call to LoadLibrary.
   24      */
   25     case DLL_PROCESS_ATTACH:
   26         break;
   27 
   28     /* The attached process creates a new thread.  */
   29     case DLL_THREAD_ATTACH:
   30         break;
   31 
   32     /* The thread of the attached process terminates. */
   33     case DLL_THREAD_DETACH:
   34         break;
   35 
   36     /*
   37      * The DLL is unloading from a process due to
   38      * process termination or a call to FreeLibrary.
   39      */
   40     case DLL_PROCESS_DETACH:
   41         break;
   42 
   43     default:
   44         break;
   45     }
   46     return (TRUE);
   47 }