source: trunk/include/initdll.h@ 9703

Last change on this file since 9703 was 9703, checked in by sandervl, 23 years ago

header update

File size: 3.2 KB
Line 
1#ifndef __INITDLL_H__
2#define __INITDLL_H__
3
4#if (defined(__IBMCPP__) || defined(__IBMC__))
5
6#define DLLENTRYPOINT_CCONV SYSTEM
7#define DLLENTRYPOINT_NAME _DLL_InitTerm
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#if (__IBMCPP__ == 300) || (__IBMC__ == 300)
14void _Optlink __ctordtorInit( void );
15#define ctordtorInit() __ctordtorInit()
16
17void _Optlink __ctordtorTerm( void );
18#define ctordtorTerm() __ctordtorTerm()
19
20#elif (__IBMCPP__ == 360) || (__IBMC__ == 360)
21void _Optlink __ctordtorInit( int flag );
22#define ctordtorInit() __ctordtorInit(0)
23
24void _Optlink __ctordtorTerm( int flag );
25#define ctordtorTerm() __ctordtorTerm(0)
26
27#else
28#error "Unknown compiler!"
29#endif
30
31
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/*-------------------------------------------------------------------*/
36int _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/*-------------------------------------------------------------------*/
43void _Optlink _CRT_term(void);
44
45
46#ifdef __cplusplus
47}
48#endif
49
50#elif defined(__WATCOMC__)
51
52#define DLLENTRYPOINT_CCONV APIENTRY
53#define DLLENTRYPOINT_NAME LibMain
54
55#define ctordtorInit()
56#define ctordtorTerm()
57
58#ifdef __cplusplus
59extern "C" {
60//prevent Watcom from mucking with this name
61extern DWORD _Resource_PEResTab;
62#pragma aux _Resource_PEResTab "*";
63}
64#endif
65
66#endif
67
68#ifdef __cplusplus
69extern "C" {
70#endif
71
72ULONG APIENTRY inittermKernel32(ULONG hModule, ULONG ulFlag);
73void APIENTRY cleanupKernel32(ULONG ulReason);
74
75ULONG APIENTRY inittermUser32(ULONG hModule, ULONG ulFlag);
76void APIENTRY cleanupUser32(ULONG ulReason);
77ULONG APIENTRY inittermOdinCtrl(ULONG hModule, ULONG ulFlag);
78
79ULONG APIENTRY inittermWinmm(ULONG hModule, ULONG ulFlag);
80ULONG APIENTRY inittermShell32(ULONG hModule, ULONG ulFlag);
81ULONG APIENTRY inittermOle32(ULONG hModule, ULONG ulFlag);
82ULONG APIENTRY inittermComdlg32(ULONG hModule, ULONG ulFlag);
83ULONG APIENTRY inittermComctl32(ULONG hModule, ULONG ulFlag);
84ULONG APIENTRY inittermGdi32(ULONG hModule, ULONG ulFlag);
85ULONG APIENTRY inittermWsock32(ULONG hModule, ULONG ulFlag);
86ULONG APIENTRY inittermWininet(ULONG hModule, ULONG ulFlag);
87ULONG APIENTRY inittermRpcrt4(ULONG hModule, ULONG ulFlag);
88ULONG APIENTRY inittermAvifil32(ULONG hModule, ULONG ulFlag);
89ULONG APIENTRY inittermQuartz(ULONG hModule, ULONG ulFlag);
90ULONG APIENTRY inittermRiched32(ULONG hModule, ULONG ulFlag);
91ULONG APIENTRY inittermWnaspi32(ULONG hModule, ULONG ulFlag);
92ULONG APIENTRY inittermUxTheme(ULONG hModule, ULONG ulFlag);
93ULONG APIENTRY inittermDInput(ULONG hModule, ULONG ulFlag);
94ULONG APIENTRY inittermDSound(ULONG hModule, ULONG ulFlag);
95ULONG APIENTRY inittermWinSpool(ULONG hModule, ULONG ulFlag);
96ULONG APIENTRY inittermDDraw(ULONG hModule, ULONG ulFlag);
97ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag);
98
99ULONG APIENTRY InitializeKernel32();
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif //__INITDLL_H__
Note: See TracBrowser for help on using the repository browser.