annotate lib/swig/swigwin-2.0.11/Lib/windows.i @ 1899:b3009adc0e2f

Adding swig, gitignore, hgignore
author Nomad
date Mon, 21 Oct 2013 10:42:27 +0200
parents
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 /* -----------------------------------------------------------------------------
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 * windows.i
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 *
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 * SWIG library file to support types found in windows.h as well as Microsoft
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 * integral type extensions. The types are set for 32 bit Windows.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 * ----------------------------------------------------------------------------- */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 // Support for non ISO (Windows) integral types
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 %apply unsigned char { unsigned __int8 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 %apply const unsigned char& { const unsigned __int8& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 %apply signed char { __int8 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 %apply const signed char& { const __int8& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 %apply unsigned short { unsigned __int16 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 %apply const unsigned short& { const unsigned __int16& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 %apply short { __int16 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 %apply const short& { const __int16& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 %apply unsigned int { unsigned __int32 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 %apply const unsigned int& { const unsigned __int32& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 %apply int { __int32 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 %apply const int& { const __int32& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 %apply unsigned long long { unsigned __int64 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 %apply const unsigned long long& { const unsigned __int64& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 %apply long long { __int64 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 %apply const long long& { const __int64& };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 // Workaround Microsoft calling conventions
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 #define __cdecl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 #define __fastcall
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 #define __far
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 #define __forceinline
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 #define __fortran
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 #define __inline
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 #define __pascal
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 #define __stdcall
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 #define __syscall
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 #define _cdecl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 #define _fastcall
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 #define _inline
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 #define _pascal
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 #define _stdcall
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 #define WINAPI
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 #define __declspec(WINDOWS_EXTENDED_ATTRIBUTE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 #define __w64
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 // Types from windef.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 typedef unsigned long ULONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 typedef ULONG *PULONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 typedef unsigned short USHORT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 typedef USHORT *PUSHORT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 typedef unsigned char UCHAR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 typedef UCHAR *PUCHAR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 typedef char *PSZ;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 typedef unsigned long DWORD;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63 typedef int BOOL;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 typedef unsigned char BYTE;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 typedef unsigned short WORD;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 typedef float FLOAT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 typedef FLOAT *PFLOAT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 typedef BOOL *PBOOL;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69 typedef BOOL *LPBOOL;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 typedef BYTE *PBYTE;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 typedef BYTE *LPBYTE;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 typedef int *PINT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 typedef int *LPINT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 typedef WORD *PWORD;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 typedef WORD *LPWORD;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 typedef long *LPLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 typedef DWORD *PDWORD;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 typedef DWORD *LPDWORD;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79 typedef void *LPVOID;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 typedef const void *LPCVOID;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81 typedef int INT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 typedef unsigned int UINT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83 typedef unsigned int *PUINT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 // Types from basetsd.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 typedef signed char INT8, *PINT8;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87 typedef signed short INT16, *PINT16;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88 typedef signed int INT32, *PINT32;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 typedef signed __int64 INT64, *PINT64;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90 typedef unsigned char UINT8, *PUINT8;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91 typedef unsigned short UINT16, *PUINT16;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 typedef unsigned int UINT32, *PUINT32;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93 typedef unsigned __int64 UINT64, *PUINT64;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 typedef signed int LONG32, *PLONG32;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95 typedef unsigned int ULONG32, *PULONG32;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96 typedef unsigned int DWORD32, *PDWORD32;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97 typedef __w64 int INT_PTR, *PINT_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 typedef __w64 unsigned int UINT_PTR, *PUINT_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99 typedef __w64 long LONG_PTR, *PLONG_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100 typedef __w64 unsigned long ULONG_PTR, *PULONG_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 typedef unsigned short UHALF_PTR, *PUHALF_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102 typedef short HALF_PTR, *PHALF_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 typedef __w64 long SHANDLE_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 typedef __w64 unsigned long HANDLE_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105 typedef ULONG_PTR SIZE_T, *PSIZE_T;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106 typedef LONG_PTR SSIZE_T, *PSSIZE_T;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108 typedef __int64 LONG64, *PLONG64;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109 typedef unsigned __int64 ULONG64, *PULONG64;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 typedef unsigned __int64 DWORD64, *PDWORD64;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 // Types from winnt.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113 typedef void *PVOID;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114 typedef void *PVOID64;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115 typedef char CHAR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116 typedef short SHORT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117 typedef long LONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118 typedef CHAR *PCHAR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 typedef CHAR *LPCH, *PCH;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120 typedef const CHAR *LPCCH, *PCCH;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121 typedef CHAR *NPSTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122 typedef CHAR *LPSTR, *PSTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123 typedef const CHAR *LPCSTR, *PCSTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 typedef char TCHAR, *PTCHAR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125 typedef unsigned char TBYTE , *PTBYTE ;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126 typedef LPSTR LPTCH, PTCH;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127 typedef LPSTR PTSTR, LPTSTR, PUTSTR, LPUTSTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128 typedef LPCSTR PCTSTR, LPCTSTR, PCUTSTR, LPCUTSTR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129 typedef SHORT *PSHORT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 typedef LONG *PLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131 typedef void *HANDLE;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132 typedef HANDLE *PHANDLE;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133 typedef BYTE FCHAR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 typedef WORD FSHORT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135 typedef DWORD FLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136 typedef LONG HRESULT;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137 typedef char CCHAR;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138 typedef DWORD LCID;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139 typedef PDWORD PLCID;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 typedef WORD LANGID;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141 typedef __int64 LONGLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
142 typedef unsigned __int64 ULONGLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
143 typedef LONGLONG *PLONGLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
144 typedef ULONGLONG *PULONGLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
145 typedef ULONGLONG DWORDLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
146 typedef DWORDLONG *PDWORDLONG;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
147 typedef BYTE BOOLEAN;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
148 typedef BOOLEAN *PBOOLEAN;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
149