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/shell32/initterm.cpp

    r5309 r6375  
    3636#include <initdll.h>
    3737
    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 }
    6638/****************************************************************************/
    6739/* _DLL_InitTerm is the function that gets called by the operating system   */
     
    8860
    8961         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     62         return inittermShell32(hModule, ulFlag);
    9063
    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;
    9864      case 1 :
    99          if(dllHandle) {
    100                 UnregisterLxDll(dllHandle);
    101          }
     65         inittermShell32(hModule, ulFlag);
     66         ctordtorTerm();
    10267         break;
    10368      default  :
Note: See TracChangeset for help on using the changeset viewer.