Changeset 2649 for trunk/src/shell32
- Timestamp:
- Feb 5, 2000, 3:12:20 AM (26 years ago)
- Location:
- trunk/src/shell32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.