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

dllentry.c

Go to the documentation of this file.
00001 /****************************Module*Header******************************\ 00002 * Module Name: DLLENTRY.C 00003 * 00004 * Module Descripton: This file has dll management functions and global 00005 * variables used by MSCMS.DLL 00006 * 00007 * Warnings: 00008 * 00009 * Issues: 00010 * 00011 * Public Routines: 00012 * 00013 * Created: 18 March 1996 00014 * Author: Srinivasan Chandrasekar [srinivac] 00015 * 00016 * Copyright (c) 1996, 1997 Microsoft Corporation 00017 \***********************************************************************/ 00018 00019 #include "mscms.h" 00020 00021 BOOL WINAPI 00022 DllEntryPoint( 00023 HINSTANCE hInstance, 00024 DWORD fdwReason, 00025 LPVOID lpvReserved 00026 ) 00027 { 00028 switch (fdwReason) 00029 { 00030 case DLL_PROCESS_ATTACH: 00031 // 00032 // Not nessesary to call me for DLL_THREAD_ATTACH and DLL_THREAD_DETACH 00033 // 00034 DisableThreadLibraryCalls(hInstance); 00035 InitializeCriticalSection(&critsec); 00036 break; 00037 00038 case DLL_PROCESS_DETACH: 00039 DeleteCriticalSection(&critsec); 00040 break; 00041 00042 default: 00043 break; 00044 } 00045 00046 return(TRUE); 00047 }

Generated on Sat May 15 19:39:45 2004 for test by doxygen 1.3.7