Changeset 510 for trunk/src/comctl32/initterm.cpp
- Timestamp:
- Aug 16, 1999, 6:28:05 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/initterm.cpp
r131 r510 1 /* $Id: initterm.cpp,v 1. 4 1999-06-20 14:02:12 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:28:02 sandervl Exp $ */ 2 2 /* 3 * COM DLG32 DLL entry point3 * COMCTL32 DLL entry point 4 4 * 5 5 * Copyright 1998 Sander van Leeuwen … … 33 33 #include <misc.h> /*PLF Wed 98-03-18 23:18:29*/ 34 34 35 extern "C" {36 /*-------------------------------------------------------------------*/37 /* _CRT_init is the C run-time environment initialization function. */38 /* It will return 0 to indicate success and -1 to indicate failure. */39 /*-------------------------------------------------------------------*/40 int CDECL CRT_init(void);41 /*-------------------------------------------------------------------*/42 /* _CRT_term is the C run-time environment termination function. */43 /* It only needs to be called when the C run-time functions are */44 /* statically linked. */45 /*-------------------------------------------------------------------*/46 void CDECL CRT_term(void);47 void CDECL _ctordtorInit( void );48 void CDECL _ctordtorTerm( void );49 }50 51 35 void CDECL RegisterCOMCTL32WindowClasses(unsigned long hinstDLL); 52 36 void CDECL UnregisterCOMCTL32WindowClasses(void); 53 54 /*-------------------------------------------------------------------*/55 /* A clean up routine registered with DosExitList must be used if */56 /* runtime calls are required and the runtime is dynamically linked. */57 /* This will guarantee that this clean up routine is run before the */58 /* library DLL is terminated. */59 /*-------------------------------------------------------------------*/60 static void APIENTRY cleanup(ULONG reason);61 62 37 63 38 /****************************************************************************/ … … 90 65 /*******************************************************************/ 91 66 92 if (CRT_init() == -1)93 return 0UL;94 _ctordtorInit();95 96 67 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 97 98 /*******************************************************************/99 /* A DosExitList routine must be used to clean up if runtime calls */100 /* are required and the runtime is dynamically linked. */101 /*******************************************************************/102 103 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);104 if(rc)105 return 0UL;106 68 107 69 /* register Win32 window classes implemented in this DLL */ … … 110 72 break; 111 73 case 1 : 74 /* unregister Win32 window classes */ 75 UnregisterCOMCTL32WindowClasses(); 112 76 break; 113 77 default : … … 121 85 } 122 86 123 124 static void APIENTRY cleanup(ULONG ulReason)125 {126 /* unregister Win32 window classes */127 UnregisterCOMCTL32WindowClasses();128 129 _ctordtorTerm();130 CRT_term();131 DosExitList(EXLST_EXIT, cleanup);132 return ;133 }
Note:
See TracChangeset
for help on using the changeset viewer.