[5129] | 1 | #ifndef __INITDLL_H__
|
---|
| 2 | #define __INITDLL_H__
|
---|
| 3 |
|
---|
| 4 | #if (defined(__IBMCPP__) || defined(__IBMC__))
|
---|
[5305] | 5 |
|
---|
| 6 | #define DLLENTRYPOINT_CCONV SYSTEM
|
---|
| 7 | #define DLLENTRYPOINT_NAME _DLL_InitTerm
|
---|
| 8 |
|
---|
[5129] | 9 | #ifdef __cplusplus
|
---|
| 10 | extern "C" {
|
---|
| 11 | #endif
|
---|
| 12 |
|
---|
[5136] | 13 | #if (__IBMCPP__ == 300) || (__IBMC__ == 300)
|
---|
[5129] | 14 | void _Optlink __ctordtorInit( void );
|
---|
[5331] | 15 | #define ctordtorInit() __ctordtorInit()
|
---|
[5135] | 16 |
|
---|
[5129] | 17 | void _Optlink __ctordtorTerm( void );
|
---|
[5331] | 18 | #define ctordtorTerm() __ctordtorTerm()
|
---|
[5136] | 19 |
|
---|
| 20 | #elif (__IBMCPP__ == 360) || (__IBMC__ == 360)
|
---|
| 21 | void _Optlink __ctordtorInit( int flag );
|
---|
[5331] | 22 | #define ctordtorInit() __ctordtorInit(0)
|
---|
[5136] | 23 |
|
---|
| 24 | void _Optlink __ctordtorTerm( int flag );
|
---|
[5331] | 25 | #define ctordtorTerm() __ctordtorTerm(0)
|
---|
[5136] | 26 |
|
---|
[5135] | 27 | #else
|
---|
[5136] | 28 | #error "Unknown compiler!"
|
---|
[5135] | 29 | #endif
|
---|
[5129] | 30 |
|
---|
[5135] | 31 |
|
---|
[5129] | 32 | /*-------------------------------------------------------------------*/
|
---|
| 33 | /* _CRT_init is the C run-time environment initialization function. */
|
---|
| 34 | /* It will return 0 to indicate success and -1 to indicate failure. */
|
---|
| 35 | /*-------------------------------------------------------------------*/
|
---|
| 36 | int _Optlink _CRT_init(void);
|
---|
| 37 |
|
---|
| 38 | /*-------------------------------------------------------------------*/
|
---|
| 39 | /* _CRT_term is the C run-time environment termination function. */
|
---|
| 40 | /* It only needs to be called when the C run-time functions are */
|
---|
| 41 | /* statically linked. */
|
---|
| 42 | /*-------------------------------------------------------------------*/
|
---|
| 43 | void _Optlink _CRT_term(void);
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | #ifdef __cplusplus
|
---|
| 47 | }
|
---|
| 48 | #endif
|
---|
| 49 |
|
---|
[5305] | 50 | #elif defined(__WATCOMC__)
|
---|
| 51 |
|
---|
| 52 | #define DLLENTRYPOINT_CCONV APIENTRY
|
---|
| 53 | #define DLLENTRYPOINT_NAME LibMain
|
---|
| 54 |
|
---|
| 55 | #define ctordtorInit()
|
---|
| 56 | #define ctordtorTerm()
|
---|
| 57 |
|
---|
[5331] | 58 | #ifdef __cplusplus
|
---|
| 59 | extern "C" {
|
---|
| 60 | //prevent Watcom from mucking with this name
|
---|
| 61 | extern DWORD _Resource_PEResTab;
|
---|
| 62 | #pragma aux _Resource_PEResTab "*";
|
---|
| 63 | }
|
---|
[5129] | 64 | #endif
|
---|
| 65 |
|
---|
[5331] | 66 | #endif
|
---|
[5129] | 67 |
|
---|
[9703] | 68 | #ifdef __cplusplus
|
---|
| 69 | extern "C" {
|
---|
| 70 | #endif
|
---|
| 71 |
|
---|
[6371] | 72 | ULONG APIENTRY inittermKernel32(ULONG hModule, ULONG ulFlag);
|
---|
| 73 | void APIENTRY cleanupKernel32(ULONG ulReason);
|
---|
[5331] | 74 |
|
---|
[6371] | 75 | ULONG APIENTRY inittermUser32(ULONG hModule, ULONG ulFlag);
|
---|
| 76 | void APIENTRY cleanupUser32(ULONG ulReason);
|
---|
[8545] | 77 | ULONG APIENTRY inittermOdinCtrl(ULONG hModule, ULONG ulFlag);
|
---|
[6371] | 78 |
|
---|
| 79 | ULONG APIENTRY inittermWinmm(ULONG hModule, ULONG ulFlag);
|
---|
| 80 | ULONG APIENTRY inittermShell32(ULONG hModule, ULONG ulFlag);
|
---|
| 81 | ULONG APIENTRY inittermOle32(ULONG hModule, ULONG ulFlag);
|
---|
| 82 | ULONG APIENTRY inittermComdlg32(ULONG hModule, ULONG ulFlag);
|
---|
| 83 | ULONG APIENTRY inittermComctl32(ULONG hModule, ULONG ulFlag);
|
---|
| 84 | ULONG APIENTRY inittermGdi32(ULONG hModule, ULONG ulFlag);
|
---|
| 85 | ULONG APIENTRY inittermWsock32(ULONG hModule, ULONG ulFlag);
|
---|
[6855] | 86 | ULONG APIENTRY inittermWininet(ULONG hModule, ULONG ulFlag);
|
---|
[6371] | 87 | ULONG APIENTRY inittermRpcrt4(ULONG hModule, ULONG ulFlag);
|
---|
[6387] | 88 | ULONG APIENTRY inittermAvifil32(ULONG hModule, ULONG ulFlag);
|
---|
[6564] | 89 | ULONG APIENTRY inittermQuartz(ULONG hModule, ULONG ulFlag);
|
---|
[6589] | 90 | ULONG APIENTRY inittermRiched32(ULONG hModule, ULONG ulFlag);
|
---|
[7061] | 91 | ULONG APIENTRY inittermWnaspi32(ULONG hModule, ULONG ulFlag);
|
---|
[8221] | 92 | ULONG APIENTRY inittermUxTheme(ULONG hModule, ULONG ulFlag);
|
---|
[8345] | 93 | ULONG APIENTRY inittermDInput(ULONG hModule, ULONG ulFlag);
|
---|
[9231] | 94 | ULONG APIENTRY inittermDSound(ULONG hModule, ULONG ulFlag);
|
---|
[9398] | 95 | ULONG APIENTRY inittermWinSpool(ULONG hModule, ULONG ulFlag);
|
---|
[9697] | 96 | ULONG APIENTRY inittermDDraw(ULONG hModule, ULONG ulFlag);
|
---|
[9703] | 97 | ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag);
|
---|
[7061] | 98 |
|
---|
[6398] | 99 | ULONG APIENTRY InitializeKernel32();
|
---|
| 100 |
|
---|
[9703] | 101 | #ifdef __cplusplus
|
---|
| 102 | }
|
---|
| 103 | #endif
|
---|
| 104 |
|
---|
[5331] | 105 | #endif //__INITDLL_H__
|
---|