2 Copyright © 2009-2011, The AROS Development Team. All rights reserved.
5 Desc: WinAPI definitions to be used with AROS-side code.
6 Taken from various Mingw32 headers..
11 #define __stdcall __attribute__((ms_abi))
13 #define __stdcall __attribute__((stdcall))
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
36 #define R2_MASKNOTPEN 3
38 #define R2_MASKPENNOT 5
39 #define R2_MERGENOTPEN 12
40 #define R2_MERGEPEN 15
41 #define R2_MERGEPENNOT 14
44 #define R2_NOTCOPYPEN 4
45 #define R2_NOTMASKPEN 8
46 #define R2_NOTMERGEPEN 2
47 #define R2_NOTXORPEN 10
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
83 #define DT_RASDISPLAY 1
84 #define DT_RASPRINTER 2
85 #define DT_RASCAMERA 3
86 #define DT_CHARSTREAM 4
101 #define NUMMARKERS 20
105 #define PDEVICESIZE 26
107 #define SIZEPALETTE 104
108 #define NUMRESERVED 106
110 #define PHYSICALWIDTH 110
111 #define PHYSICALHEIGHT 111
112 #define PHYSICALOFFSETX 112
113 #define PHYSICALOFFSETY 113
114 #define SCALINGFACTORX 114
115 #define SCALINGFACTORY 115
117 #define DESKTOPHORZRES 118
118 #define DESKTOPVERTRES 117
119 #define BLTALIGNMENT 119
120 #define SHADEBLENDCAPS 120
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
129 #define CM_DEVICE_ICM 0x01
130 #define CM_GAMMA_RAMP 0x02
131 #define CM_CMYK_COLOR 0x04
132 #define RASTERCAPS 38
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
142 #define RC_STRETCHBLT 2048
143 #define RC_STRETCHDIB 8192
144 #define RC_DEVBITS 0x8000
145 #define RC_OP_DX_OUTPUT 0x4000
151 #define CC_ELLIPSES 8
154 #define CC_WIDESTYLED 64
155 #define CC_INTERIORS 128
156 #define CC_ROUNDRECT 256
159 #define LC_POLYLINE 2
161 #define LC_POLYMARKER 8
164 #define LC_WIDESTYLED 64
165 #define LC_INTERIORS 128
166 #define POLYGONALCAPS 32
168 #define RC_BIGFONT 1024
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
176 #define RC_OP_DX_OUTPUT 0x4000
177 #define RC_PALETTE 256
178 #define RC_SAVEBITMAP 64
182 #define PC_POLYPOLYGON 256
184 #define PC_RECTANGLE 2
185 #define PC_WINDPOLYGON 4
186 #define PC_SCANLINE 8
187 #define PC_TRAPEZOID 4
190 #define PC_WIDESTYLED 64
191 #define PC_INTERIORS 128
194 #define TC_OP_CHARACTER 1
195 #define TC_OP_STROKE 2
196 #define TC_CP_STROKE 4
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
214 #define WM_KEYDOWN 256
216 #define WM_SYSKEYDOWN 260
217 #define WM_SYSKEYUP 261
218 #define WM_MOUSEWHEEL 522
224 #define MK_MBUTTON 16
225 #define MK_XBUTTON1 32
226 #define MK_XBUTTON2 64
231 #define WA_INACTIVE 0
233 #define KF_EXTENDED 0x0100
234 #define LLKHF_EXTENDED 0x01
238 #define DIB_RGB_COLORS 0
239 #define DIB_PAL_COLORS 1
243 typedef struct tagRECT
251 typedef struct tagBITMAPINFOHEADER
260 LONG biXPelsPerMeter
;
261 LONG biYPelsPerMeter
;
263 ULONG biClrImportant
;
264 } BITMAPINFOHEADER
, *PBITMAPINFOHEADER
;
266 typedef struct tagRGBQUAD
274 typedef struct tagBITMAP
285 typedef struct tagBITMAPINFO
287 BITMAPINFOHEADER bmiHeader
;
288 RGBQUAD bmiColors
[1];
289 } BITMAPINFO
, *PBITMAPINFO
;
291 typedef struct _ICONINFO