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 returnTRUE;
00081 }
Generated on Sat May 15 19:43:28 2004 for test by
1.3.7