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