Changeset 6857 for trunk/src


Ignore:
Timestamp:
Sep 28, 2001, 9:54:14 AM (24 years ago)
Author:
sandervl
Message:

custom dll updates

Location:
trunk/src
Files:
8 added
3 edited

Legend:

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

    r6587 r6857  
    3939#include <initdll.h>
    4040#include <exitlist.h>
     41#include "ordinals.h"
    4142
    4243BOOL  fVersionWarp3 = FALSE;
  • trunk/src/wininet/initterm.cpp

    r6640 r6857  
    1 /* $Id: initterm.cpp,v 1.6 2001-09-05 10:31:45 bird Exp $
     1/* $Id: initterm.cpp,v 1.7 2001-09-28 07:50:08 sandervl Exp $
    22 *
    33 * DLL entry point
     
    2626#define  INCL_DOSMODULEMGR
    2727#define  INCL_DOSPROCESS
    28 #include <os2wrap.h>                   /* Odin32 OS/2 api wrappers         */
     28#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    2929#include <stdlib.h>
    3030#include <stdio.h>
     
    3434#include <winconst.h>
    3535#include <odinlx.h>
    36 #include <misc.h>                      /* PLF Wed  98-03-18 23:18:15       */
     36#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    3737#include <initdll.h>
    38 
    39 
    40 extern "C" {
    41  //Win32 resource table (produced by wrc)
    42  extern DWORD _Resource_PEResTab;
    43 }
    44 static HMODULE dllHandle = 0;
    45 
    46 BOOL WINAPI WININET_LibMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
    47 
    48 //******************************************************************************
    49 //******************************************************************************
    50 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    51 {
    52  BOOL ret;
    53 
    54    switch (fdwReason)
    55    {
    56    case DLL_PROCESS_ATTACH:
    57    case DLL_THREAD_ATTACH:
    58    case DLL_THREAD_DETACH:
    59     return WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
    60 
    61    case DLL_PROCESS_DETACH:
    62     ret = WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
    63     ctordtorTerm();
    64     return ret;
    65    }
    66    return FALSE;
    67 }
    68 
    6938
    7039/****************************************************************************/
     
    7645/* calling this function.                                                   */
    7746/****************************************************************************/
    78 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long
    79                                    ulFlag)
     47ULONG DLLENTRYPOINT_CCONV DLLENTRYPOINT_NAME(ULONG hModule, ULONG ulFlag)
    8048{
    8149   size_t i;
     
    9260         ctordtorInit();
    9361
    94          CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
     62         return inittermWininet(hModule, ulFlag);
    9563
    96          /*******************************************************************/
    97          /* A DosExitList routine must be used to clean up if runtime calls */
    98          /* are required and the runtime is dynamically linked.             */
    99          /*******************************************************************/
    100 
    101      dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
    102          if(dllHandle == 0)
    103         return 0UL;
    104 
    105          break;
    10664      case 1 :
    107          if(dllHandle) {
    108         UnregisterLxDll(dllHandle);
    109          }
    110          break;
     65         return inittermWininet(hModule, ulFlag);
    11166
    11267      default  :
  • trunk/src/wininet/makefile

    r5419 r6857  
    1 # $Id: makefile,v 1.13 2001-04-01 10:30:32 sandervl Exp $
     1# $Id: makefile,v 1.14 2001-09-28 07:50:10 sandervl Exp $
    22
    33#
     
    66#       wininet.dll makefile
    77#
     8WRC_PREFIX_RESOURCE=1
    89
    910
     
    2425$(OBJDIR)\utility.obj \
    2526$(OBJDIR)\initterm.obj \
     27$(OBJDIR)\initwininet.obj \
    2628$(OBJDIR)\internet.obj \
    2729$(OBJDIR)\wininetrsrc.obj
Note: See TracChangeset for help on using the changeset viewer.