ReactOS 0.4.16-dev-1875-g3000d45
windef.h
Go to the documentation of this file.
1
6#ifndef _WINDEF_
7#define _WINDEF_
8#pragma once
9
10#define _WINDEF_H // wine ...
11
12#ifdef _MSC_VER
13#pragma warning(push)
14#pragma warning(disable:4255)
15#endif
16
17#include <minwindef.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#ifndef WINVER
24#define WINVER 0x0502
25#endif
26
27#ifdef __GNUC__
28#define PACKED __attribute__((packed))
29#ifndef __declspec
30#define __declspec(e) __attribute__((e))
31#endif
32#ifndef _declspec
33#define _declspec(e) __attribute__((e))
34#endif
35#elif defined(__WATCOMC__)
36#define PACKED
37#else
38#define PACKED
39#endif
40
41typedef unsigned int *LPUINT; // FIXME: not in native headers
42
43
44// HACK for MinGW headers
45typedef int WINBOOL;
46
47#ifndef _HRESULT_DEFINED
48typedef LONG HRESULT;
49#define _HRESULT_DEFINED
50#endif
51#ifndef WIN_INTERNAL
53//DECLARE_HANDLE (HHOOK);
54#ifdef WINABLE
56#endif
57#endif
58
59typedef void *HGDIOBJ;
60
64DECLARE_HANDLE(HCOLORSPACE);
68DECLARE_HANDLE(HENHMETAFILE);
77
79
80typedef enum DPI_AWARENESS {
86
87#define DPI_AWARENESS_CONTEXT_UNAWARE ((DPI_AWARENESS_CONTEXT)-1)
88#define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE ((DPI_AWARENESS_CONTEXT)-2)
89#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE ((DPI_AWARENESS_CONTEXT)-3)
90#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((DPI_AWARENESS_CONTEXT)-4)
91#define DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED ((DPI_AWARENESS_CONTEXT)-5)
92
93typedef HICON HCURSOR;
96
97#define HFILE_ERROR ((HFILE)-1)
98
99typedef struct tagRECT {
105
106typedef const RECT *LPCRECT;
107
108typedef struct _RECTL {
114
115typedef const RECTL *LPCRECTL;
116
117typedef struct tagPOINT {
121
122typedef struct _POINTL {
126
127typedef struct tagSIZE {
131
132typedef SIZE SIZEL;
134
135typedef struct tagPOINTS {
139
140#define DM_UPDATE 1
141#define DM_COPY 2
142#define DM_PROMPT 4
143#define DM_MODIFY 8
144
145#define DM_IN_BUFFER DM_MODIFY
146#define DM_IN_PROMPT DM_PROMPT
147#define DM_OUT_BUFFER DM_COPY
148#define DM_OUT_DEFAULT DM_UPDATE
149
150#define DC_FIELDS 1
151#define DC_PAPERS 2
152#define DC_PAPERSIZE 3
153#define DC_MINEXTENT 4
154#define DC_MAXEXTENT 5
155#define DC_BINS 6
156#define DC_DUPLEX 7
157#define DC_SIZE 8
158#define DC_EXTRA 9
159#define DC_VERSION 10
160#define DC_DRIVER 11
161#define DC_BINNAMES 12
162#define DC_ENUMRESOLUTIONS 13
163#define DC_FILEDEPENDENCIES 14
164#define DC_TRUETYPE 15
165#define DC_PAPERNAMES 16
166#define DC_ORIENTATION 17
167#define DC_COPIES 18
168
169/* needed by header files generated by WIDL */
170#ifdef __WINESRC__
171#define WINE_NO_UNICODE_MACROS
172#endif
173
174#ifdef WINE_NO_UNICODE_MACROS
175# define WINELIB_NAME_AW(func) \
176 func##_must_be_suffixed_with_W_or_A_in_this_context \
177 func##_must_be_suffixed_with_W_or_A_in_this_context
178#else /* WINE_NO_UNICODE_MACROS */
179# ifdef UNICODE
180# define WINELIB_NAME_AW(func) func##W
181# else
182# define WINELIB_NAME_AW(func) func##A
183# endif
184#endif /* WINE_NO_UNICODE_MACROS */
185
186#ifdef WINE_NO_UNICODE_MACROS
187# define DECL_WINELIB_TYPE_AW(type) /* nothing */
188#else
189# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type;
190#endif
191
192#ifndef __WATCOMC__
193#ifndef _export
194#define _export
195#endif
196#ifndef __export
197#define __export
198#endif
199#endif
200
201#if 0
202#ifdef __GNUC__
203#define PACKED __attribute__((packed))
204//#ifndef _fastcall
205//#define _fastcall __attribute__((fastcall))
206//#endif
207//#ifndef __fastcall
208//#define __fastcall __attribute__((fastcall))
209//#endif
210//#ifndef _stdcall
211//#define _stdcall __attribute__((stdcall))
212//#endif
213//#ifndef __stdcall
214//#define __stdcall __attribute__((stdcall))
215//#endif
216//#ifndef _cdecl
217//#define _cdecl __attribute__((cdecl))
218//#endif
219//#ifndef __cdecl
220//#define __cdecl __attribute__((cdecl))
221//#endif
222#ifndef __declspec
223#define __declspec(e) __attribute__((e))
224#endif
225#ifndef _declspec
226#define _declspec(e) __attribute__((e))
227#endif
228#elif defined(__WATCOMC__)
229#define PACKED
230#else
231#define PACKED
232#define _cdecl
233#define __cdecl
234#endif
235#endif
236
237#if 1 // needed by shlwapi.h
238#ifndef __ms_va_list
239# if defined(__x86_64__) && defined (__GNUC__)
240# define __ms_va_list __builtin_ms_va_list
241# define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
242# define __ms_va_end(list) __builtin_ms_va_end(list)
243# else
244# define __ms_va_list va_list
245# define __ms_va_start(list,arg) va_start(list,arg)
246# define __ms_va_end(list) va_end(list)
247# endif
248#endif
249#endif
250
251#ifdef _MSC_VER
252#pragma warning(pop)
253#endif
254
255#ifdef __cplusplus
256}
257#endif
258
259#endif /* _WINDEF_ */
260
DWORD_PTR HEVENT
Definition: axcore.idl:61
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DECLARE_HANDLE(name)
Definition: mimeole.idl:23
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:88
static HICON
Definition: imagelist.c:80
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
static HWINEVENTHOOK(WINAPI *pSetWinEventHook)(DWORD
static UINT UINT *static DPI_AWARENESS_CONTEXT(WINAPI *pGetThreadDpiAwarenessContext)(void)
static HGLRC(WINAPI *pwglCreateContextAttribsARB)(HDC hDC
short SHORT
Definition: pedump.c:59
long LONG
Definition: pedump.c:60
LONG y
Definition: windef.h:124
LONG x
Definition: windef.h:123
Definition: windef.h:108
LONG top
Definition: windef.h:110
LONG left
Definition: windef.h:109
LONG right
Definition: windef.h:111
LONG bottom
Definition: windef.h:112
SHORT y
Definition: windef.h:137
SHORT x
Definition: windef.h:136
LONG y
Definition: windef.h:119
LONG x
Definition: windef.h:118
Definition: windef.h:99
LONG right
Definition: windef.h:102
LONG bottom
Definition: windef.h:103
LONG top
Definition: windef.h:101
LONG left
Definition: windef.h:100
LONG cx
Definition: windef.h:128
LONG cy
Definition: windef.h:129
struct _POINTL * PPOINTL
struct tagPOINT POINT
DPI_AWARENESS
Definition: windef.h:80
@ DPI_AWARENESS_PER_MONITOR_AWARE
Definition: windef.h:84
@ DPI_AWARENESS_SYSTEM_AWARE
Definition: windef.h:83
@ DPI_AWARENESS_INVALID
Definition: windef.h:81
@ DPI_AWARENESS_UNAWARE
Definition: windef.h:82
struct _POINTL POINTL
struct tagPOINTS POINTS
struct tagPOINTS * PPOINTS
struct tagPOINT * NPPOINT
struct tagRECT RECT
struct tagPOINT * PPOINT
DWORD * LPCOLORREF
Definition: windef.h:95
unsigned int * LPUINT
Definition: windef.h:41
struct tagRECT * LPRECT
struct tagRECT * PRECT
struct tagPOINT * LPPOINT
struct _RECTL * LPRECTL
const RECTL * LPCRECTL
Definition: windef.h:115
SIZE SIZEL
Definition: windef.h:132
struct tagPOINTS * LPPOINTS
SIZE * PSIZEL
Definition: windef.h:133
struct tagSIZE SIZE
const RECT * LPCRECT
Definition: windef.h:106
LONG HRESULT
Definition: windef.h:48
void * HGDIOBJ
Definition: windef.h:59
struct tagSIZE * LPSIZE
struct _RECTL RECTL
DWORD COLORREF
Definition: windef.h:94
struct _RECTL * PRECTL
HICON HCURSOR
Definition: windef.h:93
struct tagRECT * NPRECT
SIZE * LPSIZEL
Definition: windef.h:133
int WINBOOL
Definition: windef.h:45
struct tagSIZE * PSIZE