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

    r5309 r6375  
    3939#include "dbglocal.h"
    4040
    41 extern "C" {
    42  //Win32 resource table (produced by wrc)
    43  extern DWORD _Resource_PEResTab;
    44 }
    45 static HMODULE dllHandle = 0;
    46 
    47 //******************************************************************************
    48 //******************************************************************************
    49 BOOL WINAPI OdinLibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    50 {
    51    switch (fdwReason)
    52    {
    53    case DLL_PROCESS_ATTACH:
    54         return TRUE;
    55 
    56    case DLL_THREAD_ATTACH:
    57    case DLL_THREAD_DETACH:
    58         return TRUE;
    59 
    60    case DLL_PROCESS_DETACH:
    61         ctordtorTerm();
    62         return TRUE;
    63    }
    64    return FALSE;
    65 }
    6641/****************************************************************************/
    6742/* _DLL_InitTerm is the function that gets called by the operating system   */
     
    8762         ctordtorInit();
    8863
    89          ParseLogStatus();
    90 
    9164         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9265
    93          dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab);
    94          if(dllHandle == 0)
    95                 return 0UL;
     66         return inittermWsock32(hModule, ulFlag);
    9667
     68      case 1 :
     69         inittermWsock32(hModule, ulFlag);
     70         ctordtorTerm();
    9771         break;
    98       case 1 :
    99          if(dllHandle) {
    100                 UnregisterLxDll(dllHandle);
    101          }
    102          break;
     72
    10373      default  :
    10474         return 0UL;
Note: See TracChangeset for help on using the changeset viewer.