Changeset 511 for trunk/src/shell32/initterm.cpp
- Timestamp:
- Aug 16, 1999, 6:55:33 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:03 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 }
Note:
See TracChangeset
for help on using the changeset viewer.