Changeset 5130
- Timestamp:
- Feb 14, 2001, 12:41:04 PM (24 years ago)
- Location:
- trunk/src
- Files:
-
- 2 deleted
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/DPlayX/initterm.cpp ¶
r4314 r5130 1 /* $Id: initterm.cpp,v 1.4 2000-09-24 22:26:09 hugh Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 42 39 //Win32 resource table (produced by wrc) 43 40 extern DWORD _Resource_PEResTab; … … 69 66 switch (ulFlag) { 70 67 case 0: 71 _ ctordtorInit();68 __ctordtorInit(); 72 69 73 70 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 74 75 dllHandle = RegisterLxDll(hModule, DPLAYX_LibMain, (PVOID)&_Resource_PEResTab);71 72 dllHandle = RegisterLxDll(hModule, DPLAYX_LibMain, (PVOID)&_Resource_PEResTab); 76 73 if(dllHandle == 0) 77 return 0UL;74 return 0UL; 78 75 79 76 break; 80 77 case 1: 81 78 if(dllHandle) { 82 UnregisterLxDll(dllHandle);79 UnregisterLxDll(dllHandle); 83 80 } 84 81 break; -
TabularUnified trunk/src/NTDLL/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.10 2000-08-11 10:56:11 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 61 57 case DLL_PROCESS_DETACH: 62 58 NTDLL_LibMain(hinstDLL, fdwReason, fImpLoad); 63 _ ctordtorTerm();59 __ctordtorTerm(); 64 60 return TRUE; 65 61 } … … 88 84 switch (ulFlag) { 89 85 case 0 : 90 _ ctordtorInit();86 __ctordtorInit(); 91 87 92 88 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/Odin32API/odindll.cpp ¶
r3993 r5130 1 /* $Id: odindll.cpp,v 1. 2 2000-08-11 10:56:12sandervl Exp $ */1 /* $Id: odindll.cpp,v 1.3 2001-02-14 11:40:58 sandervl Exp $ */ 2 2 3 3 /* … … 35 35 #include <odinlx.h> 36 36 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 37 #include <initdll.h> 37 38 38 39 extern "C" { 39 void CDECL _ctordtorInit( void );40 void CDECL _ctordtorTerm( void );41 40 42 41 //Win32 resource table (produced by wrc) … … 78 77 switch (ulFlag) { 79 78 case 0 : 80 _ ctordtorInit();79 __ctordtorInit(); 81 80 82 81 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ … … 91 90 return 0UL; 92 91 93 rc = DosExitList( 0x0000F000|EXLST_ADD, cleanup);92 rc = DosExitList(EXITLIST_APPDLL|EXLST_ADD, cleanup); 94 93 if(rc) 95 94 return 0UL; … … 114 113 static void APIENTRY cleanup(ULONG ulReason) 115 114 { 116 _ ctordtorTerm();115 __ctordtorTerm(); 117 116 DosExitList(EXLST_EXIT, cleanup); 118 117 return ; -
TabularUnified trunk/src/comctl32/initterm.cpp ¶
r5076 r5130 1 /* $Id: initterm.cpp,v 1.11 2001-02-09 18:31:38 sandervl Exp $ */2 1 /* 3 2 * COMCTL32 DLL entry point … … 35 34 #include <winconst.h> 36 35 #include <odinlx.h> 36 #include <initdll.h> 37 37 38 38 extern "C" { 39 void CDECL _ctordtorInit( void );40 void CDECL _ctordtorTerm( void );41 42 39 //Win32 resource table (produced by wrc) 43 40 extern DWORD _Resource_PEResTab; … … 67 64 /* unregister Win32 window classes */ 68 65 UnregisterCOMCTL32WindowClasses(); 69 _ ctordtorTerm();66 __ctordtorTerm(); 70 67 return TRUE; 71 68 } … … 95 92 case 0 : 96 93 97 _ ctordtorInit();94 __ctordtorInit(); 98 95 99 96 /*******************************************************************/ -
TabularUnified trunk/src/comdlg32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.10 2000-08-11 10:56:13 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 62 58 case DLL_PROCESS_DETACH: 63 59 COMDLG32_DllEntryPoint(hinstDLL, fdwReason, fImpLoad); 64 _ ctordtorTerm();60 __ctordtorTerm(); 65 61 return TRUE; 66 62 } … … 89 85 switch (ulFlag) { 90 86 case 0 : 91 _ ctordtorInit();87 __ctordtorInit(); 92 88 93 89 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/crtdll/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:13 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <winconst.h> 37 35 #include <odinlx.h> 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 39 43 40 //Win32 resource table (produced by wrc) … … 62 59 case DLL_PROCESS_DETACH: 63 60 CRTDLL_Init(hinstDLL, fdwReason, fImpLoad); 64 _ ctordtorTerm();61 __ctordtorTerm(); 65 62 return TRUE; 66 63 } … … 89 86 switch (ulFlag) { 90 87 case 0 : 91 _ ctordtorInit();88 __ctordtorInit(); 92 89 93 90 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/ddraw/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.13 2000-08-11 10:56:14 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 62 58 63 59 case DLL_PROCESS_DETACH: 64 _ ctordtorTerm();60 __ctordtorTerm(); 65 61 return TRUE; 66 62 } … … 90 86 case 0 : 91 87 { 92 _ ctordtorInit();88 __ctordtorInit(); 93 89 94 90 DosQueryModuleName(hModule, CCHMAXPATH, ddrawPath); -
TabularUnified trunk/src/ddraw/new/initterm.cpp ¶
r3345 r5130 1 /* $Id: initterm.cpp,v 1.1 2000-04-07 18:21:12 mike Exp $ */2 3 1 /* 4 2 * DLL entry point … … 37 35 #include <exitlist.h> 38 36 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 37 #include <initdll.h> 39 38 40 39 extern "C" { 41 void CDECL _ctordtorInit( void );42 void CDECL _ctordtorTerm( void );43 44 40 //Win32 resource table (produced by wrc) 45 41 extern DWORD _Resource_PEResTab; … … 65 61 66 62 case DLL_PROCESS_DETACH: 67 _ ctordtorTerm();63 __ctordtorTerm(); 68 64 return TRUE; 69 65 } … … 93 89 case 0 : 94 90 { 95 _ ctordtorInit();91 __ctordtorInit(); 96 92 97 93 DosQueryModuleName(hModule, CCHMAXPATH, ddrawPath); -
TabularUnified trunk/src/dllentry/dllentry.cpp ¶
r4818 r5130 1 /* $Id: dllentry.cpp,v 1. 3 2000-12-16 23:31:07 birdExp $ */1 /* $Id: dllentry.cpp,v 1.4 2001-02-14 11:40:59 sandervl Exp $ */ 2 2 3 3 /* … … 36 36 #include <odinlx.h> 37 37 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 38 38 #include <initdll.h> 39 39 40 40 extern "C" { 41 #ifdef __IBMCPP__42 void CDECL _ctordtorInit( void );43 void CDECL _ctordtorTerm( void );44 #endif45 41 //Win32 resource table (produced by wrc) 46 42 extern DWORD _Resource_PEResTab; … … 64 60 case DLL_PROCESS_DETACH: 65 61 #ifdef __IBMCPP__ 66 _ ctordtorTerm();62 __ctordtorTerm(); 67 63 #endif 68 64 return TRUE; … … 93 89 { 94 90 case 0: 95 _ ctordtorInit();91 __ctordtorInit(); 96 92 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 97 93 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); -
TabularUnified trunk/src/dsound/initterm.cpp ¶
r4028 r5130 1 /* $Id: initterm.cpp,v 1.12 2000-08-17 18:21:05 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 62 58 63 59 case DLL_PROCESS_DETACH: 64 _ ctordtorTerm();60 __ctordtorTerm(); 65 61 return TRUE; 66 62 } … … 93 89 char *endofpath = strrchr(dsoundPath, '\\'); 94 90 if(endofpath) *(endofpath+1) = 0; 95 _ ctordtorInit();91 __ctordtorInit(); 96 92 97 93 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/gdi32/initterm.cpp ¶
r4873 r5130 1 /* $Id: initterm.cpp,v 1.13 2001-01-05 23:25:30 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 39 37 #include "dbglocal.h" 40 38 #include "region.h" 39 #include <initdll.h> 41 40 42 41 extern "C" { 43 void CDECL _ctordtorInit( void );44 void CDECL _ctordtorTerm( void );45 46 42 //Win32 resource table (produced by wrc) 47 43 extern DWORD _Resource_PEResTab; … … 62 58 63 59 case DLL_PROCESS_DETACH: 64 _ ctordtorTerm();60 __ctordtorTerm(); 65 61 return TRUE; 66 62 } … … 89 85 switch (ulFlag) { 90 86 case 0 : 91 _ ctordtorInit();87 __ctordtorInit(); 92 88 93 89 ParseLogStatus(); -
TabularUnified trunk/src/imagehlp/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:15 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <winconst.h> 37 35 #include <odinlx.h> 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 61 57 case DLL_PROCESS_DETACH: 62 58 IMAGEHLP_LibMain(hinstDLL, fdwReason, fImpLoad); 63 _ ctordtorTerm();59 __ctordtorTerm(); 64 60 return TRUE; 65 61 } … … 88 84 switch (ulFlag) { 89 85 case 0 : 90 _ ctordtorInit();86 __ctordtorInit(); 91 87 92 88 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/kernel32/initterm.cpp ¶
r4510 r5130 1 /* $Id: initterm.cpp,v 1.49 2000-10-21 14:30:47 sandervl Exp $ */2 3 1 /* 4 2 * KERNEL32 DLL entry point … … 53 51 #include <cpuhlp.h> 54 52 #include <Win32k.h> 53 #include <initdll.h> 55 54 56 55 #define DBG_LOCALLOG DBG_initterm … … 67 66 68 67 extern "C" { 69 void CDECL _ctordtorInit( void );70 void CDECL _ctordtorTerm( void );71 72 68 //Win32 resource table (produced by wrc) 73 69 extern DWORD _Resource_PEResTab; … … 121 117 *(endofpath+1) = 0; 122 118 dprintf(("kernel32 init %s %s", __DATE__, __TIME__)); 123 _ ctordtorInit();119 __ctordtorInit(); 124 120 125 121 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ … … 219 215 DestroySharedHeap(); 220 216 DestroyCodeHeap(); 221 _ ctordtorTerm();217 __ctordtorTerm(); 222 218 223 219 //NOTE: Must be done after DestroyTIB -
TabularUnified trunk/src/msacm32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:21 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <winconst.h> 37 35 #include <odinlx.h> 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 61 57 case DLL_PROCESS_DETACH: 62 58 MSACM32_LibMain(hinstDLL, fdwReason, fImpLoad); 63 _ ctordtorTerm();59 __ctordtorTerm(); 64 60 return TRUE; 65 61 } … … 88 84 switch (ulFlag) { 89 85 case 0 : 90 _ ctordtorInit();86 __ctordtorInit(); 91 87 92 88 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/odincrt/initterm.cpp ¶
r4818 r5130 1 /* $Id: initterm.cpp,v 1.4 2000-12-16 23:33:37 bird Exp $ */2 3 1 /* 4 2 * DLL entry point … … 34 32 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 33 #include <exitlist.h> 34 #include <initdll.h> 36 35 37 36 #ifdef __IBMCPP__ 38 37 extern "C" { 39 /*-------------------------------------------------------------------*/40 /* _CRT_init is the C run-time environment initialization function. */41 /* It will return 0 to indicate success and -1 to indicate failure. */42 /*-------------------------------------------------------------------*/43 int CDECL CRT_init(void);44 /*-------------------------------------------------------------------*/45 /* _CRT_term is the C run-time environment termination function. */46 /* It only needs to be called when the C run-time functions are */47 /* statically linked. */48 /*-------------------------------------------------------------------*/49 void CDECL CRT_term(void);50 void CDECL _ctordtorInit( void );51 void CDECL _ctordtorTerm( void );52 }53 38 54 39 /*-------------------------------------------------------------------*/ … … 59 44 /*-------------------------------------------------------------------*/ 60 45 static void APIENTRY cleanup(ULONG reason); 61 46 } 62 47 63 48 /****************************************************************************/ … … 89 74 /*******************************************************************/ 90 75 91 if ( CRT_init() == -1)76 if (_CRT_init() == -1) 92 77 return 0UL; 93 _ ctordtorInit();78 __ctordtorInit(); 94 79 95 80 /*******************************************************************/ … … 129 114 static void APIENTRY cleanup(ULONG ulReason) 130 115 { 131 _ ctordtorTerm();132 CRT_term();116 __ctordtorTerm(); 117 _CRT_term(); 133 118 DosExitList(EXLST_EXIT, cleanup); 134 119 return ; -
TabularUnified trunk/src/oleaut32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.7 2000-08-11 10:56:22 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 70 66 71 67 case DLL_PROCESS_DETACH: 72 _ ctordtorTerm();68 __ctordtorTerm(); 73 69 ClosePrivateLogFiles(); 74 70 return TRUE; … … 105 101 *(endofpath+1) = 0; 106 102 107 _ ctordtorInit();103 __ctordtorInit(); 108 104 109 105 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/opengl/glide/cvg/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 34 32 #include <odinlx.h> 35 33 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */ 34 #include <initdll.h> 36 35 37 36 extern "C" { 38 void CDECL _ctordtorInit( void );39 void CDECL _ctordtorTerm( void );40 41 37 //Win32 resource table (produced by wrc) 42 38 extern DWORD _Resource_PEResTab; … … 58 54 59 55 case DLL_PROCESS_DETACH: 60 _ctordtorTerm();61 56 DllMain(hinstDLL, fdwReason, fImpLoad); 57 __ctordtorTerm(); 62 58 return TRUE; 63 59 } … … 86 82 switch (ulFlag) { 87 83 case 0 : 88 _ ctordtorInit();84 __ctordtorInit(); 89 85 90 86 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/opengl/glide/sst1/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 34 32 #include <odinlx.h> 35 33 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */ 34 #include <initdll.h> 36 35 37 36 extern "C" { 38 void CDECL _ctordtorInit( void );39 void CDECL _ctordtorTerm( void );40 41 37 //Win32 resource table (produced by wrc) 42 38 extern DWORD _Resource_PEResTab; … … 58 54 59 55 case DLL_PROCESS_DETACH: 60 _ctordtorTerm();61 56 DllMain(hinstDLL, fdwReason, fImpLoad); 57 __ctordtorTerm(); 62 58 return TRUE; 63 59 } … … 86 82 switch (ulFlag) { 87 83 case 0 : 88 _ ctordtorInit();84 __ctordtorInit(); 89 85 90 86 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/opengl/glu/makefile ¶
r4720 r5130 1 # $Id: makefile,v 1.1 5 2000-12-03 00:26:14 birdExp $1 # $Id: makefile,v 1.16 2001-02-14 11:41:02 sandervl Exp $ 2 2 3 3 # … … 33 33 # 34 34 OBJS = \ 35 $(OBJDIR)\ initterm.obj \36 $( OBJDIR)\glu32rsrc.obj35 $(OBJDIR)\glu32rsrc.obj \ 36 $(DLLENTRY) 37 37 38 38 -
TabularUnified trunk/src/opengl/glut/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.9 2000-08-11 10:56:23 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 35 33 #include <winconst.h> 36 34 #include <odinlx.h> 37 35 #include <initdll.h> 38 36 39 37 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 38 //Win32 resource table (produced by wrc) 44 39 extern DWORD _Resource_PEResTab; … … 61 56 case DLL_PROCESS_DETACH: 62 57 Glut32Terminate(); 63 _ ctordtorTerm();64 return TRUE;58 __ctordtorTerm(); 59 return TRUE; 65 60 } 66 61 return FALSE; … … 87 82 switch (ulFlag) { 88 83 case 0 : 89 _ ctordtorInit();84 __ctordtorInit(); 90 85 91 86 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/opengl/mesa/3dfx/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:23 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 62 58 case DLL_PROCESS_DETACH: 63 59 cleangraphics(); 64 _ ctordtorTerm();60 __ctordtorTerm(); 65 61 return TRUE; 66 62 } … … 89 85 switch (ulFlag) { 90 86 case 0 : 91 _ ctordtorInit();87 __ctordtorInit(); 92 88 93 89 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/opengl/mesa/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.5 2000-08-11 10:56:23 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */ 36 #include <initdll.h> 38 37 39 38 extern "C" { 40 void CDECL _ctordtorInit( void );41 void CDECL _ctordtorTerm( void );42 43 39 //Win32 resource table (produced by wrc) 44 40 extern DWORD _Resource_PEResTab; … … 66 62 DiveGlobalTerminate(); 67 63 #endif 68 _ ctordtorTerm();64 __ctordtorTerm(); 69 65 return TRUE; 70 66 } … … 94 90 switch (ulFlag) { 95 91 case 0 : 96 _ ctordtorInit();92 __ctordtorInit(); 97 93 98 94 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/riched32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:24 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 38 36 #include <twain.h> 37 #include <initdll.h> 39 38 40 39 extern "C" { 41 void CDECL _ctordtorInit( void );42 void CDECL _ctordtorTerm( void );43 44 40 //Win32 resource table (produced by wrc) 45 41 extern DWORD _Resource_PEResTab; … … 52 48 //****************************************************************************** 53 49 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 54 { 50 { 51 BOOL ret; 52 55 53 switch (fdwReason) 56 54 { … … 63 61 64 62 case DLL_PROCESS_DETACH: 65 _ctordtorTerm(); 66 return RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad); 63 ret = RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad); 64 __ctordtorTerm(); 65 return ret; 67 66 } 68 67 return FALSE; … … 91 90 switch (ulFlag) { 92 91 case 0 : 93 _ ctordtorInit();92 __ctordtorInit(); 94 93 95 94 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/rpcrt4/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.3 2000-08-11 10:56:24 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 38 36 #include "uuidp.h" 37 #include <initdll.h> 39 38 40 39 extern "C" { 41 void CDECL _ctordtorInit( void );42 void CDECL _ctordtorTerm( void );43 44 40 //Win32 resource table (produced by wrc) 45 41 extern DWORD _Resource_PEResTab; … … 61 57 62 58 case DLL_PROCESS_DETACH: 63 _ ctordtorTerm();59 __ctordtorTerm(); 64 60 return TRUE; 65 61 } … … 88 84 switch (ulFlag) { 89 85 case 0 : 90 _ ctordtorInit();86 __ctordtorInit(); 91 87 92 88 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/shell32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.11 2000-08-11 10:56:25 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 38 39 extern "C" { 40 void CDECL _ctordtorInit( void ); 41 void CDECL _ctordtorTerm( void ); 42 } 36 #include <initdll.h> 43 37 44 38 extern "C" { … … 54 48 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 55 49 { 50 BOOL ret; 51 56 52 switch (fdwReason) 57 53 { … … 62 58 63 59 case DLL_PROCESS_DETACH: 64 Shell32LibMain(hinstDLL, fdwReason, fImpLoad);65 _ ctordtorTerm();66 return TRUE;60 ret = Shell32LibMain(hinstDLL, fdwReason, fImpLoad); 61 __ctordtorTerm(); 62 return ret; 67 63 } 68 64 return FALSE; … … 90 86 switch (ulFlag) { 91 87 case 0 : 92 _ ctordtorInit();88 __ctordtorInit(); 93 89 94 90 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/twain_32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.9 2000-08-11 10:56:25 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 38 36 #include <twain.h> 37 #include <initdll.h> 39 38 40 39 extern "C" { 41 void CDECL _ctordtorInit( void );42 void CDECL _ctordtorTerm( void );43 44 40 //Win32 resource table (produced by wrc) 45 41 extern DWORD _Resource_PEResTab; … … 70 66 71 67 case DLL_PROCESS_DETACH: 72 _ ctordtorTerm();68 __ctordtorTerm(); 73 69 return TRUE; 74 70 } … … 98 94 switch (ulFlag) { 99 95 case 0 : 100 _ ctordtorInit();96 __ctordtorInit(); 101 97 102 98 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/user32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.23 2000-08-11 10:56:26 sandervl Exp $ */2 3 1 /* 4 2 * USER32 DLL entry point … … 44 42 #include "initterm.h" 45 43 #include <exitlist.h> 44 #include <initdll.h> 46 45 47 46 #define DBG_LOCALLOG DBG_initterm … … 57 56 58 57 extern "C" { 59 void CDECL _ctordtorInit( void );60 void CDECL _ctordtorTerm( void );61 62 58 //Win32 resource table (produced by wrc) 63 59 extern DWORD _Resource_PEResTab; … … 87 83 switch (ulFlag) { 88 84 case 0 : 89 _ ctordtorInit();85 __ctordtorInit(); 90 86 ParseLogStatus(); 91 87 … … 148 144 SYSCOLOR_Save(); 149 145 CloseSpyQueue(); 150 _ ctordtorTerm();146 __ctordtorTerm(); 151 147 dprintf(("user32 exit done\n")); 152 148 -
TabularUnified trunk/src/wing32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.3 2000-08-11 10:56:27 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 #include "wing32impl.h" 39 38 40 39 extern "C" { 41 void CDECL _ctordtorInit( void );42 void CDECL _ctordtorTerm( void );43 44 40 //Win32 resource table (produced by wrc) 45 41 extern DWORD _Resource_PEResTab; … … 54 50 { 55 51 case DLL_PROCESS_ATTACH: 52 if(!InitWing32()) 53 return FALSE; 54 56 55 return TRUE; 57 56 … … 61 60 62 61 case DLL_PROCESS_DETACH: 63 _ ctordtorTerm();62 __ctordtorTerm(); 64 63 return TRUE; 65 64 } … … 90 89 case 0 : 91 90 { 92 _ctordtorInit();91 __ctordtorInit(); 93 92 94 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 96 if(!InitWing32()) 97 return 0UL; 93 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 98 94 99 95 dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab); -
TabularUnified trunk/src/wininet/initterm.cpp ¶
r3994 r5130 1 /* $Id: initterm.cpp,v 1.3 2000-08-11 10:57:58 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */ 36 #include <initdll.h> 38 37 39 38 40 39 extern "C" { 41 void CDECL _ctordtorInit( void );42 void CDECL _ctordtorTerm( void );43 44 40 //Win32 resource table (produced by wrc) 45 41 extern DWORD _Resource_PEResTab; … … 53 49 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 54 50 { 51 BOOL ret; 52 55 53 switch (fdwReason) 56 54 { … … 61 59 62 60 case DLL_PROCESS_DETACH: 63 WININET_LibMain(hinstDLL, fdwReason, fImpLoad);64 _ ctordtorTerm();65 return TRUE;61 ret = WININET_LibMain(hinstDLL, fdwReason, fImpLoad); 62 __ctordtorTerm(); 63 return ret; 66 64 } 67 65 return FALSE; … … 91 89 switch (ulFlag) { 92 90 case 0 : 93 _ ctordtorInit();91 __ctordtorInit(); 94 92 95 93 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/winmm/initterm.cpp ¶
r4748 r5130 1 /* $Id: initterm.cpp,v 1.11 2000-12-03 22:18:17 sandervl Exp $ */2 3 1 /* 4 2 * WINMM DLL entry point … … 38 36 #include <winconst.h> 39 37 #include <odinlx.h> 38 #include <initdll.h> 40 39 #include "auxiliary.h" 41 40 … … 44 43 45 44 BOOL MULTIMEDIA_MciInit(void); 46 BOOL 45 BOOL MULTIMEDIA_CreateIData(HINSTANCE hinstDLL); 47 46 void MULTIMEDIA_DeleteIData(void); 48 47 49 48 extern "C" { 50 49 void IRTMidiShutdown(); // IRTMidi shutdown routine 51 void CDECL _ctordtorInit( void );52 void CDECL _ctordtorTerm( void );53 54 50 55 51 //Win32 resource table (produced by wrc) … … 85 81 86 82 case DLL_PROCESS_DETACH: 87 MULTIMEDIA_DeleteIData();83 MULTIMEDIA_DeleteIData(); 88 84 auxOS2Close(); /* SvL: Close aux device if necessary */ 89 85 IRTMidiShutdown; /* JT: Shutdown RT Midi subsystem, if running. */ 90 _ ctordtorTerm();86 __ctordtorTerm(); 91 87 return TRUE; 92 88 } … … 115 111 switch (ulFlag) { 116 112 case 0 : 117 _ ctordtorInit();113 __ctordtorInit(); 118 114 119 115 ParseLogStatus(); -
TabularUnified trunk/src/wnaspi32/initterm.cpp ¶
r4265 r5130 1 /* $Id: initterm.cpp,v 1.4 2000-09-15 13:25:48 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 38 37 #include "aspilib.h" 39 38 40 39 extern "C" { 41 void CDECL _ctordtorInit( void );42 void CDECL _ctordtorTerm( void );43 44 40 //Win32 resource table (produced by wrc) 45 41 extern DWORD _Resource_PEResTab; … … 80 76 aspi = NULL; 81 77 } 82 _ ctordtorTerm();78 __ctordtorTerm(); 83 79 return TRUE; 84 80 } … … 107 103 switch (ulFlag) { 108 104 case 0: 109 _ ctordtorInit();105 __ctordtorInit(); 110 106 111 107 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ -
TabularUnified trunk/src/wsock32/initterm.cpp ¶
r3993 r5130 1 /* $Id: initterm.cpp,v 1.12 2000-08-11 10:56:27 sandervl Exp $ */2 3 1 /* 4 2 * DLL entry point … … 36 34 #include <odinlx.h> 37 35 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 36 #include <initdll.h> 37 38 38 #define DBG_LOCALLOG DBG_initterm 39 39 #include "dbglocal.h" 40 40 41 41 extern "C" { 42 void CDECL _ctordtorInit( void );43 void CDECL _ctordtorTerm( void );44 45 42 //Win32 resource table (produced by wrc) 46 43 extern DWORD _Resource_PEResTab; … … 62 59 63 60 case DLL_PROCESS_DETACH: 64 _ ctordtorTerm();61 __ctordtorTerm(); 65 62 return TRUE; 66 63 } … … 89 86 switch (ulFlag) { 90 87 case 0 : 91 _ ctordtorInit();88 __ctordtorInit(); 92 89 93 90 ParseLogStatus();
Note:
See TracChangeset
for help on using the changeset viewer.