1 /* WinAPI definitions to be used with AROS-side code. Taken from various Mingw32 headers. */
3 #define BLACKNESS 0x00000042
4 #define NOTSRCERASE 0x001100A6
5 #define NOTSRCCOPY 0x00330008
6 #define SRCERASE 0x00440328
7 #define DSTINVERT 0x00550009
8 #define PATINVERT 0x005A0049
9 #define SRCINVERT 0x00660046
10 #define SRCAND 0x008800C6
11 #define MERGEPAINT 0x00BB0226
12 #define MERGECOPY 0x00C000CA
13 #define SRCCOPY 0x00CC0020
14 #define SRCPAINT 0x00EE0086
15 #define PATCOPY 0x00F00021
16 #define PATPAINT 0x00FB0A09
17 #define WHITENESS 0x00FF0062
18 #define CAPTUREBLT 0x40000000
19 #define NOMIRRORBITMAP 0x80000000
22 #define RDW_FRAME 1024
23 #define RDW_INTERNALPAINT 2
24 #define RDW_INVALIDATE 1
25 #define RDW_NOERASE 32
26 #define RDW_NOFRAME 2048
27 #define RDW_NOINTERNALPAINT 16
28 #define RDW_VALIDATE 8
29 #define RDW_ERASENOW 512
30 #define RDW_UPDATENOW 256
31 #define RDW_ALLCHILDREN 128
32 #define RDW_NOCHILDREN 64
34 #define DRIVERVERSION 0
37 #define DT_RASDISPLAY 1
38 #define DT_RASPRINTER 2
39 #define DT_RASCAMERA 3
40 #define DT_CHARSTREAM 4
59 #define PDEVICESIZE 26
61 #define SIZEPALETTE 104
62 #define NUMRESERVED 106
64 #define PHYSICALWIDTH 110
65 #define PHYSICALHEIGHT 111
66 #define PHYSICALOFFSETX 112
67 #define PHYSICALOFFSETY 113
68 #define SCALINGFACTORX 114
69 #define SCALINGFACTORY 115
71 #define DESKTOPHORZRES 118
72 #define DESKTOPVERTRES 117
73 #define BLTALIGNMENT 119
74 #define SHADEBLENDCAPS 120
76 #define SB_CONST_ALPHA 0x01
77 #define SB_PIXEL_ALPHA 0x02
78 #define SB_PREMULT_ALPHA 0x04
79 #define SB_GRAD_RECT 0x10
80 #define SB_GRAD_TRI 0x20
81 #define COLORMGMTCAPS 121
83 #define CM_DEVICE_ICM 0x01
84 #define CM_GAMMA_RAMP 0x02
85 #define CM_CMYK_COLOR 0x04
90 #define RC_DI_BITMAP 128
91 #define RC_DIBTODEV 512
92 #define RC_FLOODFILL 4096
93 #define RC_GDI20_OUTPUT 16
94 #define RC_PALETTE 256
96 #define RC_STRETCHBLT 2048
97 #define RC_STRETCHDIB 8192
98 #define RC_DEVBITS 0x8000
99 #define RC_OP_DX_OUTPUT 0x4000
105 #define CC_ELLIPSES 8
108 #define CC_WIDESTYLED 64
109 #define CC_INTERIORS 128
110 #define CC_ROUNDRECT 256
113 #define LC_POLYLINE 2
115 #define LC_POLYMARKER 8
118 #define LC_WIDESTYLED 64
119 #define LC_INTERIORS 128
120 #define POLYGONALCAPS 32
122 #define RC_BIGFONT 1024
124 #define RC_BITMAP64 8
125 #define RC_DEVBITS 0x8000
126 #define RC_DI_BITMAP 128
127 #define RC_GDI20_OUTPUT 16
128 #define RC_GDI20_STATE 32
130 #define RC_OP_DX_OUTPUT 0x4000
131 #define RC_PALETTE 256
132 #define RC_SAVEBITMAP 64
136 #define PC_POLYPOLYGON 256
138 #define PC_RECTANGLE 2
139 #define PC_WINDPOLYGON 4
140 #define PC_SCANLINE 8
141 #define PC_TRAPEZOID 4
144 #define PC_WIDESTYLED 64
145 #define PC_INTERIORS 128
148 #define TC_OP_CHARACTER 1
149 #define TC_OP_STROKE 2
150 #define TC_CP_STROKE 4
153 #define TC_SF_X_YINDEP 32
154 #define TC_SA_DOUBLE 64
155 #define TC_SA_INTEGER 128
156 #define TC_SA_CONTIN 256
157 #define TC_EA_DOUBLE 512
158 #define TC_IA_ABLE 1024
159 #define TC_UA_ABLE 2048
160 #define TC_SO_ABLE 4096
161 #define TC_RA_ABLE 8192
162 #define TC_VA_ABLE 16384
163 #define TC_RESERVED 32768
164 #define TC_SCROLLBLT 65536
167 #define WM_KEYDOWN 256
169 #define WM_SYSKEYDOWN 260
170 #define WM_SYSKEYUP 261
171 #define WM_MOUSEWHEEL 522
177 #define MK_MBUTTON 16
178 #define MK_XBUTTON1 32
179 #define MK_XBUTTON2 64
183 #define DIB_RGB_COLORS 0
185 typedef struct tagRECT
{
192 typedef struct tagBITMAPINFOHEADER
{
200 LONG biXPelsPerMeter
;
201 LONG biYPelsPerMeter
;
203 ULONG biClrImportant
;
204 } BITMAPINFOHEADER
, *PBITMAPINFOHEADER
;
206 typedef struct tagRGBQUAD
{
213 typedef struct tagBITMAPINFO
{
214 BITMAPINFOHEADER bmiHeader
;
215 RGBQUAD bmiColors
[1];
216 } BITMAPINFO
, *PBITMAPINFO
;