Changeset 6857 for trunk/src/wininet/initterm.cpp
- Timestamp:
- Sep 28, 2001, 9:54:14 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wininet/initterm.cpp
r6640 r6857 1 /* $Id: initterm.cpp,v 1. 6 2001-09-05 10:31:45 birdExp $1 /* $Id: initterm.cpp,v 1.7 2001-09-28 07:50:08 sandervl Exp $ 2 2 * 3 3 * DLL entry point … … 26 26 #define INCL_DOSMODULEMGR 27 27 #define INCL_DOSPROCESS 28 #include <os2wrap.h> /* Odin32 OS/2 api wrappers */28 #include <os2wrap.h> //Odin32 OS/2 api wrappers 29 29 #include <stdlib.h> 30 30 #include <stdio.h> … … 34 34 #include <winconst.h> 35 35 #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*/ 37 37 #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 69 38 70 39 /****************************************************************************/ … … 76 45 /* calling this function. */ 77 46 /****************************************************************************/ 78 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long 79 ulFlag) 47 ULONG DLLENTRYPOINT_CCONV DLLENTRYPOINT_NAME(ULONG hModule, ULONG ulFlag) 80 48 { 81 49 size_t i; … … 92 60 ctordtorInit(); 93 61 94 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/62 return inittermWininet(hModule, ulFlag); 95 63 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;106 64 case 1 : 107 if(dllHandle) { 108 UnregisterLxDll(dllHandle); 109 } 110 break; 65 return inittermWininet(hModule, ulFlag); 111 66 112 67 default :
Note:
See TracChangeset
for help on using the changeset viewer.