24 #include <winpr/wtypes.h>
32 #define MB_OK 0x00000000L
33 #define MB_OKCANCEL 0x00000001L
34 #define MB_ABORTRETRYIGNORE 0x00000002L
35 #define MB_YESNOCANCEL 0x00000003L
36 #define MB_YESNO 0x00000004L
37 #define MB_RETRYCANCEL 0x00000005L
38 #define MB_CANCELTRYCONTINUE 0x00000006L
49 #define IDTIMEOUT 32000
55 #define CF_METAFILEPICT 3
65 #define CF_UNICODETEXT 13
66 #define CF_ENHMETAFILE 14
72 #define CF_OWNERDISPLAY 0x0080
73 #define CF_DSPTEXT 0x0081
74 #define CF_DSPBITMAP 0x0082
75 #define CF_DSPMETAFILEPICT 0x0083
76 #define CF_DSPENHMETAFILE 0x008E
78 #define CF_PRIVATEFIRST 0x0200
79 #define CF_PRIVATELAST 0x02FF
81 #define CF_GDIOBJFIRST 0x0300
82 #define CF_GDIOBJLAST 0x03FF
89 #define MM_LOENGLISH 4
90 #define MM_HIENGLISH 5
92 #define MM_ISOTROPIC 7
93 #define MM_ANISOTROPIC 8
95 #define MM_MIN MM_TEXT
96 #define MM_MAX MM_ANISOTROPIC
97 #define MM_MAX_FIXEDSCALE MM_TWIPS
107 #pragma pack(push, 1)
109 typedef LONG FXPT16DOT16, FAR *LPFXPT16DOT16;
110 typedef LONG FXPT2DOT30, FAR *LPFXPT2DOT30;
112 typedef struct tagCIEXYZ
119 typedef CIEXYZ FAR* LPCIEXYZ;
121 typedef struct tagICEXYZTRIPLE
130 typedef struct tagBITMAP
139 }
BITMAP, *PBITMAP, NEAR *NPBITMAP, FAR *LPBITMAP;
141 typedef struct tagRGBTRIPLE
146 }
RGBTRIPLE, *PRGBTRIPLE, NEAR *NPRGBTRIPLE, FAR *LPRGBTRIPLE;
148 typedef struct tagRGBQUAD
156 typedef RGBQUAD FAR* LPRGBQUAD;
161 #define BI_BITFIELDS 3
165 #define PROFILE_LINKED 'LINK'
166 #define PROFILE_EMBEDDED 'MBED'
168 typedef struct tagBITMAPINFOHEADER
177 LONG biXPelsPerMeter;
178 LONG biYPelsPerMeter;
180 DWORD biClrImportant;
191 ORIENTATION_PREFERENCE_NONE = 0x0,
192 ORIENTATION_PREFERENCE_LANDSCAPE = 0x1,
194 ORIENTATION_PREFERENCE_PORTRAIT = 0x2,
195 ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = 0x4,
196 ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = 0x8
197 } ORIENTATION_PREFERENCE;
203 #if !defined(_WIN32) || defined(_UWP)
205 #pragma pack(push, 1)
207 typedef struct tagBITMAPCOREHEADER
223 DWORD bV4V4Compression;
225 LONG bV4XPelsPerMeter;
226 LONG bV4YPelsPerMeter;
228 DWORD bV4ClrImportant;
247 DWORD bV5Compression;
249 LONG bV5XPelsPerMeter;
250 LONG bV5YPelsPerMeter;
252 DWORD bV5ClrImportant;
263 DWORD bV5ProfileData;
264 DWORD bV5ProfileSize;
268 typedef struct tagBITMAPCOREINFO
274 typedef struct tagBITMAPFILEHEADER