Changeset 6375 for trunk/src/user32/initterm.cpp
- Timestamp:
- Jul 20, 2001, 5:42:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/initterm.cpp
r6339 r6375 37 37 #include <winconst.h> 38 38 #include <odinlx.h> 39 #include <spy.h>40 #include <monitor.h>41 #include "pmwindow.h"42 #include "win32wdesktop.h"43 #include "syscolor.h"44 39 #include "initterm.h" 45 40 #include <exitlist.h> … … 57 52 static void APIENTRY cleanup(ULONG reason); 58 53 59 extern "C" {60 //Win32 resource table (produced by wrc)61 extern DWORD _Resource_PEResTab;62 }63 DWORD hInstanceUser32 = 0;64 54 BOOL fVersionWarp3 = FALSE; 65 55 … … 87 77 case 0 : 88 78 ctordtorInit(); 89 ParseLogStatus();90 91 79 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 92 93 hInstanceUser32 = RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab,94 USER32_MAJORIMAGE_VERSION, USER32_MINORIMAGE_VERSION,95 IMAGE_SUBSYSTEM_WINDOWS_GUI);96 if(hInstanceUser32 == 0)97 return 0UL;98 99 dprintf(("user32 init %s %s (%x)", __DATE__, __TIME__, DLLENTRYPOINT_NAME));100 80 101 81 rc = DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_VERSION_MINOR, version, sizeof(version)); … … 115 95 return 0UL; 116 96 117 //SvL: Try to start communication with our message spy queue server 118 InitSpyQueue(); 119 120 //SvL: Init win32 PM classes 121 if(InitPM() == FALSE) { 122 return 0UL; 123 } 124 125 //SvL: 18-7-'98, Register system window classes (button, listbox etc etc) 126 //CB: register internal classes 127 RegisterSystemClasses(hModule); 128 129 //CB: initialize PM monitor driver 130 MONITOR_Initialize(&MONITOR_PrimaryMonitor); 131 97 rc = inittermUser32(hModule, ulFlag); 132 98 break; 133 99 case 1 : 134 if(hInstanceUser32) { 135 UnregisterLxDll(hInstanceUser32); 136 } 100 rc = inittermUser32(hModule, ulFlag); 137 101 break; 138 102 default : … … 148 112 static void APIENTRY cleanup(ULONG ulReason) 149 113 { 150 dprintf(("user32 exit\n")); 151 //SvL: Causes PM hangs on some (a lot?) machines. Reason unknown. 152 //// RestoreCursor(); 153 DestroyDesktopWindow(); 154 Win32BaseWindow::DestroyAll(); 155 UnregisterSystemClasses(); 156 Win32WndClass::DestroyAll(); 157 MONITOR_Finalize(&MONITOR_PrimaryMonitor); 158 SYSCOLOR_Save(); 159 CloseSpyQueue(); 114 cleanupUser32(ulReason); 160 115 ctordtorTerm(); 161 dprintf(("user32 exit done\n"));162 116 163 117 DosExitList(EXLST_EXIT, cleanup);
Note:
See TracChangeset
for help on using the changeset viewer.