Ignore:
Timestamp:
Jul 20, 2001, 5:42:38 PM (24 years ago)
Author:
sandervl
Message:

initterm update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/initterm.cpp

    r6339 r6375  
    3737#include <winconst.h>
    3838#include <odinlx.h>
    39 #include <spy.h>
    40 #include <monitor.h>
    41 #include "pmwindow.h"
    42 #include "win32wdesktop.h"
    43 #include "syscolor.h"
    4439#include "initterm.h"
    4540#include <exitlist.h>
     
    5752static void APIENTRY cleanup(ULONG reason);
    5853
    59 extern "C" {
    60  //Win32 resource table (produced by wrc)
    61  extern DWORD _Resource_PEResTab;
    62 }
    63 DWORD hInstanceUser32 = 0;
    6454BOOL  fVersionWarp3 = FALSE;
    6555
     
    8777      case 0 :
    8878         ctordtorInit();
    89          ParseLogStatus();
    90 
    9179         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));
    10080
    10181         rc = DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_VERSION_MINOR, version, sizeof(version));
     
    11595                return 0UL;
    11696
    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);
    13298         break;
    13399      case 1 :
    134          if(hInstanceUser32) {
    135                 UnregisterLxDll(hInstanceUser32);
    136          }
     100         rc = inittermUser32(hModule, ulFlag);
    137101         break;
    138102      default  :
     
    148112static void APIENTRY cleanup(ULONG ulReason)
    149113{
    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);
    160115   ctordtorTerm();
    161    dprintf(("user32 exit done\n"));
    162116
    163117   DosExitList(EXLST_EXIT, cleanup);
Note: See TracChangeset for help on using the changeset viewer.