Changeset 2650 for trunk/src/gdi32
- Timestamp:
- Feb 5, 2000, 3:19:44 AM (26 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
-
initterm.cpp (modified) (5 diffs)
-
makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/initterm.cpp
r2254 r2650 1 /* $Id: initterm.cpp,v 1. 8 1999-12-29 18:51:45sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.9 2000-02-05 01:59:24 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*/ … … 43 44 extern DWORD _Resource_PEResTab; 44 45 } 46 //****************************************************************************** 47 //****************************************************************************** 48 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 49 { 50 switch (fdwReason) 51 { 52 case DLL_PROCESS_ATTACH: 53 return TRUE; 45 54 46 /*-------------------------------------------------------------------*/ 47 /* A clean up routine registered with DosExitList must be used if */ 48 /* runtime calls are required and the runtime is dynamically linked. */ 49 /* This will guarantee that this clean up routine is run before the */ 50 /* library DLL is terminated. */ 51 /*-------------------------------------------------------------------*/ 52 static void APIENTRY cleanup(ULONG reason); 55 case DLL_THREAD_ATTACH: 56 case DLL_THREAD_DETACH: 57 return TRUE; 53 58 54 59 case DLL_PROCESS_DETACH: 60 _ctordtorTerm(); 61 return TRUE; 62 } 63 return FALSE; 64 } 55 65 /****************************************************************************/ 56 66 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 84 94 /*******************************************************************/ 85 95 86 if(RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab) == FALSE)96 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 87 97 return 0UL; 88 89 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);90 if(rc)91 return 0UL;92 98 93 99 break; … … 104 110 return 1UL; 105 111 } 106 107 108 static void APIENTRY cleanup(ULONG ulReason) 109 { 110 _ctordtorTerm(); 111 DosExitList(EXLST_EXIT, cleanup); 112 return ; 113 } 112 //****************************************************************************** 113 //****************************************************************************** -
trunk/src/gdi32/makefile
r2614 r2650 1 # $Id: makefile,v 1.1 8 2000-02-03 18:59:36sandervl Exp $1 # $Id: makefile,v 1.19 2000-02-05 01:59:25 sandervl Exp $ 2 2 3 3 # … … 18 18 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) 19 19 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE) 20 21 RC = $(PDWIN32_TOOLS)\wrc22 RCFLAGS = -s -I. -I$(CPPMAIN)\include -I$(PDWIN32_INCLUDE) -I$(PDWIN32_INCLUDE)\win23 24 20 25 21 TARGET = gdi32
Note:
See TracChangeset
for help on using the changeset viewer.
