Changeset 6375 for trunk/src/wsock32/initterm.cpp
- Timestamp:
- Jul 20, 2001, 5:42:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/initterm.cpp
r5309 r6375 39 39 #include "dbglocal.h" 40 40 41 extern "C" {42 //Win32 resource table (produced by wrc)43 extern DWORD _Resource_PEResTab;44 }45 static HMODULE dllHandle = 0;46 47 //******************************************************************************48 //******************************************************************************49 BOOL WINAPI OdinLibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)50 {51 switch (fdwReason)52 {53 case DLL_PROCESS_ATTACH:54 return TRUE;55 56 case DLL_THREAD_ATTACH:57 case DLL_THREAD_DETACH:58 return TRUE;59 60 case DLL_PROCESS_DETACH:61 ctordtorTerm();62 return TRUE;63 }64 return FALSE;65 }66 41 /****************************************************************************/ 67 42 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 87 62 ctordtorInit(); 88 63 89 ParseLogStatus();90 91 64 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 92 65 93 dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab); 94 if(dllHandle == 0) 95 return 0UL; 66 return inittermWsock32(hModule, ulFlag); 96 67 68 case 1 : 69 inittermWsock32(hModule, ulFlag); 70 ctordtorTerm(); 97 71 break; 98 case 1 : 99 if(dllHandle) { 100 UnregisterLxDll(dllHandle); 101 } 102 break; 72 103 73 default : 104 74 return 0UL;
Note:
See TracChangeset
for help on using the changeset viewer.