Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

dllmain.c File Reference

#include <windows.h>

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)


Function Documentation

BOOL WINAPI DllMain (  HINSTANCE  hDLLInst,
DWORD  fdwReason,
LPVOID  lpvReserved
) 
 

Definition at line 48 of file jul98/dll32/dllmain.c.

References BOOL, and TRUE.

00049 { 00050 switch (fdwReason) 00051 { 00052 case DLL_PROCESS_ATTACH: 00053 // The DLL is being loaded for the first time by a given process. 00054 // Perform per-process initialization here. If the initialization 00055 // is successful, return TRUE; if unsuccessful, return FALSE. 00056 00057 break; 00058 00059 case DLL_PROCESS_DETACH: 00060 // The DLL is being unloaded by a given process. Do any 00061 // per-process clean up here, such as undoing what was done in 00062 // DLL_PROCESS_ATTACH. The return value is ignored. 00063 00064 break; 00065 00066 case DLL_THREAD_ATTACH: 00067 // A thread is being created in a process that has already loaded 00068 // this DLL. Perform any per-thread initialization here. The 00069 // return value is ignored. 00070 00071 break; 00072 00073 case DLL_THREAD_DETACH: 00074 // A thread is exiting cleanly in a process that has already 00075 // loaded this DLL. Perform any per-thread clean up here. The 00076 // return value is ignored. 00077 00078 break; 00079 } 00080 return TRUE; 00081 }


Generated on Sat May 15 19:43:28 2004 for test by doxygen 1.3.7