- Timestamp:
- Feb 5, 2000, 3:12:20 AM (26 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initterm.cpp
r2513 r2649 1 /* $Id: initterm.cpp,v 1.3 3 2000-01-25 20:27:16sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.34 2000-02-05 02:01:04 sandervl Exp $ */ 2 2 3 3 /* … … 48 48 #include <windllbase.h> 49 49 #include "initsystem.h" 50 #include <exitlist.h> 50 51 51 52 /*-------------------------------------------------------------------*/ … … 129 130 /*******************************************************************/ 130 131 131 rc = DosExitList( 0x0000F000|EXLST_ADD, cleanup);132 rc = DosExitList(EXITLIST_KERNEL32|EXLST_ADD, cleanup); 132 133 if (rc) 133 134 return 0UL; -
trunk/src/kernel32/makefile
r2613 r2649 1 # $Id: makefile,v 1.8 0 2000-02-03 18:56:39sandervl Exp $1 # $Id: makefile,v 1.81 2000-02-05 02:01:04 sandervl Exp $ 2 2 3 3 # … … 161 161 initterm.h 162 162 163 initterm.OBJ: .\initterm.cpp initterm.h $(PDWIN32_INCLUDE)\heapshared.h mmap.h directory.h hmdevio.h initsystem.h $(PDWIN32_INCLUDE)\heapcode.h 163 initterm.OBJ: .\initterm.cpp initterm.h $(PDWIN32_INCLUDE)\heapshared.h mmap.h directory.h hmdevio.h initsystem.h $(PDWIN32_INCLUDE)\heapcode.h $(PDWIN32_INCLUDE)\exitlist.h 164 164 initsystem.obj: initsystem.cpp $(PDWIN32_INCLUDE)\cpuhlp.h initsystem.h $(PDWIN32_INCLUDE)\misc.h directory.h $(PDWIN32_INCLUDE)\versionos2.h 165 165 -
trunk/src/odincrt/initterm.cpp
r1874 r2649 1 /* $Id: initterm.cpp,v 1. 2 1999-11-29 00:11:47 birdExp $ */1 /* $Id: initterm.cpp,v 1.3 2000-02-05 02:05:37 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 #include <exitlist.h> 35 36 36 37 extern "C" { … … 97 98 /*******************************************************************/ 98 99 99 rc = DosExitList( 0x0000FF00|EXLST_ADD, cleanup);100 rc = DosExitList(EXITLIST_ODINCRT|EXLST_ADD, cleanup); 100 101 if(rc) 101 102 return 0UL; -
trunk/src/odincrt/makefile
r2178 r2649 1 # $Id: makefile,v 1.1 3 1999-12-21 12:28:07sandervl Exp $1 # $Id: makefile,v 1.14 2000-02-05 02:05:38 sandervl Exp $ 2 2 3 3 # … … 38 38 $(CP) $@ $(PDWIN32_LIB) 39 39 40 initterm.obj: initterm.cpp 40 initterm.obj: initterm.cpp $(PDWIN32_INCLUDE)\exitlist.h 41 41 42 42 string.obj: string.cpp -
trunk/src/shell32/initterm.cpp
r1252 r2649 1 /* $Id: initterm.cpp,v 1. 9 1999-10-11 20:17:10sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.10 2000-02-05 02:10:15 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 #include <odin.h> 34 34 #include <win32type.h> 35 #include <winconst.h> 35 36 #include <odinlx.h> 36 37 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ … … 48 49 BOOL WINAPI Shell32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad); 49 50 50 /*-------------------------------------------------------------------*/ 51 /* A clean up routine registered with DosExitList must be used if */ 52 /* runtime calls are required and the runtime is dynamically linked. */ 53 /* This will guarantee that this clean up routine is run before the */ 54 /* library DLL is terminated. */ 55 /*-------------------------------------------------------------------*/ 56 static void APIENTRY cleanup(ULONG reason); 51 //****************************************************************************** 52 //****************************************************************************** 53 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 54 { 55 switch (fdwReason) 56 { 57 case DLL_PROCESS_ATTACH: 58 case DLL_THREAD_ATTACH: 59 case DLL_THREAD_DETACH: 60 return Shell32LibMain(hinstDLL, fdwReason, fImpLoad); 57 61 58 62 case DLL_PROCESS_DETACH: 63 Shell32LibMain(hinstDLL, fdwReason, fImpLoad); 64 _ctordtorTerm(); 65 return TRUE; 66 } 67 return FALSE; 68 } 59 69 /****************************************************************************/ 60 70 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 83 93 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 84 94 85 /*******************************************************************/ 86 /* A DosExitList routine must be used to clean up if runtime calls */ 87 /* are required and the runtime is dynamically linked. */ 88 /*******************************************************************/ 89 90 if(RegisterLxDll(hModule, Shell32LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 95 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 91 96 return 0UL; 92 93 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);94 if(rc)95 return 0UL;96 97 97 98 break; … … 108 109 return 1UL; 109 110 } 110 111 112 static void APIENTRY cleanup(ULONG ulReason) 113 { 114 _ctordtorTerm(); 115 DosExitList(EXLST_EXIT, cleanup); 116 return ; 117 } 111 //****************************************************************************** 112 //****************************************************************************** -
trunk/src/shell32/makefile
r2477 r2649 1 # $Id: makefile,v 1.1 8 2000-01-18 22:27:55sandervl Exp $1 # $Id: makefile,v 1.19 2000-02-05 02:10:16 sandervl Exp $ 2 2 3 3 # … … 18 18 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) 19 19 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE) 20 21 22 RC = $(PDWIN32_TOOLS)\wrc23 RCFLAGS = -s -I. -I$(CPPMAIN)\include -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\win24 20 25 21 TARGET = shell32 … … 60 56 61 57 62 initterm.obj: initterm.cpp 58 initterm.obj: initterm.cpp $(PDWIN32_INCLUDE)\exitlist.h 63 59 brsfolder.obj: brsfolder.cpp 64 60 classes.obj: classes.cpp -
trunk/src/twain_32/initterm.cpp
r2455 r2649 1 /* $Id: initterm.cpp,v 1. 7 2000-01-15 22:02:07sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.8 2000-02-05 02:11:41 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 #include <odin.h> 34 34 #include <win32type.h> 35 #include <winconst.h> 35 36 #include <odinlx.h> 36 37 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ … … 49 50 extern int WINAPI PROFILE_GetOdinIniInt(LPCSTR section,LPCSTR key_name,int def); 50 51 TW_UINT16 (APIENTRY *TWAINOS2_DSM_Entry)( pTW_IDENTITY, pTW_IDENTITY, 51 52 TW_UINT32, TW_UINT16, TW_UINT16, TW_MEMREF) = 0; 52 53 static HINSTANCE hTWAIN = 0; 53 54 54 55 } 56 //****************************************************************************** 57 //****************************************************************************** 58 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 59 { 60 switch (fdwReason) 61 { 62 case DLL_PROCESS_ATTACH: 63 return TRUE; 55 64 56 /*-------------------------------------------------------------------*/ 57 /* A clean up routine registered with DosExitList must be used if */ 58 /* runtime calls are required and the runtime is dynamically linked. */ 59 /* This will guarantee that this clean up routine is run before the */ 60 /* library DLL is terminated. */ 61 /*-------------------------------------------------------------------*/ 62 static void APIENTRY cleanup(ULONG reason); 65 case DLL_THREAD_ATTACH: 66 case DLL_THREAD_DETACH: 67 return TRUE; 63 68 64 69 case DLL_PROCESS_DETACH: 70 _ctordtorTerm(); 71 return TRUE; 72 } 73 return FALSE; 74 } 65 75 /****************************************************************************/ 66 76 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 133 143 } 134 144 } 135 /*******************************************************************/ 136 /* A DosExitList routine must be used to clean up if runtime calls */ 137 /* are required and the runtime is dynamically linked. */ 138 /*******************************************************************/ 139 140 if(RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab) == FALSE) 145 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 141 146 return 0UL; 142 143 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);144 if(rc)145 return 0UL;146 147 147 148 break; … … 161 162 return 1UL; 162 163 } 163 164 165 static void APIENTRY cleanup(ULONG ulReason) 166 { 167 _ctordtorTerm(); 168 DosExitList(EXLST_EXIT, cleanup); 169 return ; 170 } 164 //****************************************************************************** 165 //****************************************************************************** -
trunk/src/user32/Makefile
r2636 r2649 1 # $Id: Makefile,v 1.6 0 2000-02-04 17:17:56 cbratschiExp $1 # $Id: Makefile,v 1.61 2000-02-05 02:12:20 sandervl Exp $ 2 2 3 3 # … … 96 96 hook.obj: hook.cpp $(PDWIN32_INCLUDE)\win\hook.h 97 97 defwndproc.obj: defwndproc.cpp syscolor.h win32wmdiclient.h win32wbase.h win32wnd.h win32dlg.h 98 initterm.obj: initterm.cpp $(PDWIN32_INCLUDE)\spy.h pmwindow.h initterm.h 98 initterm.obj: initterm.cpp $(PDWIN32_INCLUDE)\spy.h pmwindow.h initterm.h $(PDWIN32_INCLUDE)\exitlist.h 99 99 uitools.obj: uitools.cpp win32wbase.h 100 100 unknown.obj: unknown.cpp … … 147 147 oslibres.obj: oslibres.cpp oslibwin.h oslibres.h $(PDWIN32_INCLUDE)\winconst.h 148 148 oslibdos.obj: oslibdos.cpp oslibdos.h 149 dc.obj: dc.cpp win32wbase.h dc.h dcdata.h149 dc.obj: dc.cpp win32wbase.h dc.h $(PDWIN32_INCLUDE)\dcdata.h 150 150 timer.obj: timer.cpp win32wbase.h timer.h 151 caret.obj: caret.cpp win32wbase.h caret.h dcdata.h151 caret.obj: caret.cpp win32wbase.h caret.h $(PDWIN32_INCLUDE)\dcdata.h 152 152 text.obj: text.cpp 153 153 -
trunk/src/user32/initterm.cpp
r2582 r2649 1 /* $Id: initterm.cpp,v 1. 19 2000-01-31 22:30:51sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.20 2000-02-05 02:12:20 sandervl Exp $ */ 2 2 3 3 /* … … 42 42 #include "syscolor.h" 43 43 #include "initterm.h" 44 #include <exitlist.h> 44 45 45 46 /*-------------------------------------------------------------------*/ … … 96 97 /*******************************************************************/ 97 98 98 rc = DosExitList( 0x00008000|EXLST_ADD, cleanup);99 rc = DosExitList(EXITLIST_USER32|EXLST_ADD, cleanup); 99 100 if(rc) 100 101 return 0UL;
Note:
See TracChangeset
for help on using the changeset viewer.