Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / all-mingw32 / hidd / wingdi / winapi.h
blobd33b4e8c03c40d21fd7d55b2b09934cd989bb40d
1 /*
2 Copyright © 2009-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: WinAPI definitions to be used with AROS-side code.
6 Taken from various Mingw32 headers..
7 Lang: English.
8 */
10 #ifdef __x86_64__
11 #define __stdcall __attribute__((ms_abi))
12 #else
13 #define __stdcall __attribute__((stdcall))
14 #endif
16 #define BLACKNESS 0x00000042
17 #define NOTSRCERASE 0x001100A6
18 #define NOTSRCCOPY 0x00330008
19 #define SRCERASE 0x00440328
20 #define DSTINVERT 0x00550009
21 #define PATINVERT 0x005A0049
22 #define SRCINVERT 0x00660046
23 #define SRCAND 0x008800C6
24 #define MERGEPAINT 0x00BB0226
25 #define MERGECOPY 0x00C000CA
26 #define SRCCOPY 0x00CC0020
27 #define SRCPAINT 0x00EE0086
28 #define PATCOPY 0x00F00021
29 #define PATPAINT 0x00FB0A09
30 #define WHITENESS 0x00FF0062
31 #define CAPTUREBLT 0x40000000
32 #define NOMIRRORBITMAP 0x80000000
34 #define R2_BLACK 1
35 #define R2_COPYPEN 13
36 #define R2_MASKNOTPEN 3
37 #define R2_MASKPEN 9
38 #define R2_MASKPENNOT 5
39 #define R2_MERGENOTPEN 12
40 #define R2_MERGEPEN 15
41 #define R2_MERGEPENNOT 14
42 #define R2_NOP 11
43 #define R2_NOT 6
44 #define R2_NOTCOPYPEN 4
45 #define R2_NOTMASKPEN 8
46 #define R2_NOTMERGEPEN 2
47 #define R2_NOTXORPEN 10
48 #define R2_WHITE 16
49 #define R2_XORPEN 7
51 #define RDW_ERASE 4
52 #define RDW_FRAME 1024
53 #define RDW_INTERNALPAINT 2
54 #define RDW_INVALIDATE 1
55 #define RDW_NOERASE 32
56 #define RDW_NOFRAME 2048
57 #define RDW_NOINTERNALPAINT 16
58 #define RDW_VALIDATE 8
59 #define RDW_ERASENOW 512
60 #define RDW_UPDATENOW 256
61 #define RDW_ALLCHILDREN 128
62 #define RDW_NOCHILDREN 64
64 #define SWP_NOSIZE 0x0001
65 #define SWP_NOMOVE 0x0002
66 #define SWP_NOZORDER 0x0004
67 #define SWP_NOREDRAW 0x0008
68 #define SWP_NOACTIVATE 0x0010
69 #define SWP_DRAWFRAME 0x0020
70 #define SWP_FRAMECHANGED 0x0020
71 #define SWP_SHOWWINDOW 0x0040
72 #define SWP_HIDEWINDOW 0x0080
73 #define SWP_NOCOPYBITS 0x0100
74 #define SWP_NOOWNERZORDER 0x0200
75 #define SWP_NOREPOSITION 0x0200
76 #define SWP_NOSENDCHANGING 0x0400
77 #define SWP_DEFERERASE 0x2000
78 #define SWP_ASYNCWINDOWPOS 0x4000
80 #define DRIVERVERSION 0
81 #define TECHNOLOGY 2
82 #define DT_PLOTTER 0
83 #define DT_RASDISPLAY 1
84 #define DT_RASPRINTER 2
85 #define DT_RASCAMERA 3
86 #define DT_CHARSTREAM 4
87 #define DT_METAFILE 5
88 #define DT_DISPFILE 6
89 #define HORZSIZE 4
90 #define VERTSIZE 6
91 #define HORZRES 8
92 #define VERTRES 10
93 #define LOGPIXELSX 88
94 #define LOGPIXELSY 90
95 #define BITSPIXEL 12
96 #define PLANES 14
97 #define NUMBRUSHES 16
98 #define NUMPENS 18
99 #define NUMFONTS 22
100 #define NUMCOLORS 24
101 #define NUMMARKERS 20
102 #define ASPECTX 40
103 #define ASPECTY 42
104 #define ASPECTXY 44
105 #define PDEVICESIZE 26
106 #define CLIPCAPS 36
107 #define SIZEPALETTE 104
108 #define NUMRESERVED 106
109 #define COLORRES 108
110 #define PHYSICALWIDTH 110
111 #define PHYSICALHEIGHT 111
112 #define PHYSICALOFFSETX 112
113 #define PHYSICALOFFSETY 113
114 #define SCALINGFACTORX 114
115 #define SCALINGFACTORY 115
116 #define VREFRESH 116
117 #define DESKTOPHORZRES 118
118 #define DESKTOPVERTRES 117
119 #define BLTALIGNMENT 119
120 #define SHADEBLENDCAPS 120
121 #define SB_NONE 0x00
122 #define SB_CONST_ALPHA 0x01
123 #define SB_PIXEL_ALPHA 0x02
124 #define SB_PREMULT_ALPHA 0x04
125 #define SB_GRAD_RECT 0x10
126 #define SB_GRAD_TRI 0x20
127 #define COLORMGMTCAPS 121
128 #define CM_NONE 0x00
129 #define CM_DEVICE_ICM 0x01
130 #define CM_GAMMA_RAMP 0x02
131 #define CM_CMYK_COLOR 0x04
132 #define RASTERCAPS 38
133 #define RC_BANDING 2
134 #define RC_BITBLT 1
135 #define RC_BITMAP64 8
136 #define RC_DI_BITMAP 128
137 #define RC_DIBTODEV 512
138 #define RC_FLOODFILL 4096
139 #define RC_GDI20_OUTPUT 16
140 #define RC_PALETTE 256
141 #define RC_SCALING 4
142 #define RC_STRETCHBLT 2048
143 #define RC_STRETCHDIB 8192
144 #define RC_DEVBITS 0x8000
145 #define RC_OP_DX_OUTPUT 0x4000
146 #define CURVECAPS 28
147 #define CC_NONE 0
148 #define CC_CIRCLES 1
149 #define CC_PIE 2
150 #define CC_CHORD 4
151 #define CC_ELLIPSES 8
152 #define CC_WIDE 16
153 #define CC_STYLED 32
154 #define CC_WIDESTYLED 64
155 #define CC_INTERIORS 128
156 #define CC_ROUNDRECT 256
157 #define LINECAPS 30
158 #define LC_NONE 0
159 #define LC_POLYLINE 2
160 #define LC_MARKER 4
161 #define LC_POLYMARKER 8
162 #define LC_WIDE 16
163 #define LC_STYLED 32
164 #define LC_WIDESTYLED 64
165 #define LC_INTERIORS 128
166 #define POLYGONALCAPS 32
167 #define RC_BANDING 2
168 #define RC_BIGFONT 1024
169 #define RC_BITBLT 1
170 #define RC_BITMAP64 8
171 #define RC_DEVBITS 0x8000
172 #define RC_DI_BITMAP 128
173 #define RC_GDI20_OUTPUT 16
174 #define RC_GDI20_STATE 32
175 #define RC_NONE 0
176 #define RC_OP_DX_OUTPUT 0x4000
177 #define RC_PALETTE 256
178 #define RC_SAVEBITMAP 64
179 #define RC_SCALING 4
180 #define PC_NONE 0
181 #define PC_POLYGON 1
182 #define PC_POLYPOLYGON 256
183 #define PC_PATHS 512
184 #define PC_RECTANGLE 2
185 #define PC_WINDPOLYGON 4
186 #define PC_SCANLINE 8
187 #define PC_TRAPEZOID 4
188 #define PC_WIDE 16
189 #define PC_STYLED 32
190 #define PC_WIDESTYLED 64
191 #define PC_INTERIORS 128
192 #define PC_PATHS 512
193 #define TEXTCAPS 34
194 #define TC_OP_CHARACTER 1
195 #define TC_OP_STROKE 2
196 #define TC_CP_STROKE 4
197 #define TC_CR_90 8
198 #define TC_CR_ANY 16
199 #define TC_SF_X_YINDEP 32
200 #define TC_SA_DOUBLE 64
201 #define TC_SA_INTEGER 128
202 #define TC_SA_CONTIN 256
203 #define TC_EA_DOUBLE 512
204 #define TC_IA_ABLE 1024
205 #define TC_UA_ABLE 2048
206 #define TC_SO_ABLE 4096
207 #define TC_RA_ABLE 8192
208 #define TC_VA_ABLE 16384
209 #define TC_RESERVED 32768
210 #define TC_SCROLLBLT 65536
212 #define WM_CLOSE 16
213 #define WM_QUIT 18
214 #define WM_KEYDOWN 256
215 #define WM_KEYUP 257
216 #define WM_SYSKEYDOWN 260
217 #define WM_SYSKEYUP 261
218 #define WM_MOUSEWHEEL 522
220 #define MK_LBUTTON 1
221 #define MK_RBUTTON 2
222 #define MK_SHIFT 4
223 #define MK_CONTROL 8
224 #define MK_MBUTTON 16
225 #define MK_XBUTTON1 32
226 #define MK_XBUTTON2 64
228 #define VK_LWIN 0x5B
229 #define VK_RWIN 0x5C
231 #define WA_INACTIVE 0
233 #define KF_EXTENDED 0x0100
234 #define LLKHF_EXTENDED 0x01
236 #define BI_RGB 0
238 #define DIB_RGB_COLORS 0
239 #define DIB_PAL_COLORS 1
241 #pragma pack(4)
243 typedef struct tagRECT
245 LONG left;
246 LONG top;
247 LONG right;
248 LONG bottom;
249 } RECT;
251 typedef struct tagBITMAPINFOHEADER
253 ULONG biSize;
254 LONG biWidth;
255 LONG biHeight;
256 WORD biPlanes;
257 WORD biBitCount;
258 ULONG biCompression;
259 ULONG biSizeImage;
260 LONG biXPelsPerMeter;
261 LONG biYPelsPerMeter;
262 ULONG biClrUsed;
263 ULONG biClrImportant;
264 } BITMAPINFOHEADER, *PBITMAPINFOHEADER;
266 typedef struct tagRGBQUAD
268 BYTE rgbBlue;
269 BYTE rgbGreen;
270 BYTE rgbRed;
271 BYTE rgbReserved;
272 } RGBQUAD;
274 typedef struct tagBITMAP
276 ULONG bmType;
277 ULONG bmWidth;
278 ULONG bmHeight;
279 ULONG bmWidthBytes;
280 UWORD bmPlanes;
281 UWORD bmBitsPixel;
282 APTR bmBits;
283 } BITMAP, *PBITMAP;
285 typedef struct tagBITMAPINFO
287 BITMAPINFOHEADER bmiHeader;
288 RGBQUAD bmiColors[1];
289 } BITMAPINFO, *PBITMAPINFO;
291 typedef struct _ICONINFO
293 ULONG fIcon;
294 ULONG xHotspot;
295 ULONG yHotspot;
296 APTR hbmMask;
297 APTR hbmColor;
298 } ICONINFO;
300 #pragma pack()