Changeset 6375 for trunk/src/shell32/initterm.cpp
- Timestamp:
- Jul 20, 2001, 5:42:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/initterm.cpp
r5309 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 Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad);45 46 //******************************************************************************47 //******************************************************************************48 BOOL WINAPI OdinLibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)49 {50 BOOL ret;51 52 switch (fdwReason)53 {54 case DLL_PROCESS_ATTACH:55 case DLL_THREAD_ATTACH:56 case DLL_THREAD_DETACH:57 return Shell32LibMain(hinstDLL, fdwReason, fImpLoad);58 59 case DLL_PROCESS_DETACH:60 ret = Shell32LibMain(hinstDLL, fdwReason, fImpLoad);61 ctordtorTerm();62 return ret;63 }64 return FALSE;65 }66 38 /****************************************************************************/ 67 39 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 88 60 89 61 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 62 return inittermShell32(hModule, ulFlag); 90 63 91 dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab,92 SHELL32_MAJORIMAGE_VERSION, SHELL32_MINORIMAGE_VERSION,93 IMAGE_SUBSYSTEM_WINDOWS_GUI);94 if(dllHandle == 0)95 return 0UL;96 97 break;98 64 case 1 : 99 if(dllHandle) { 100 UnregisterLxDll(dllHandle); 101 } 65 inittermShell32(hModule, ulFlag); 66 ctordtorTerm(); 102 67 break; 103 68 default :
Note:
See TracChangeset
for help on using the changeset viewer.