ReactOS 0.4.16-dev-2204-g370eb8c
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
98
99typedef HICON HCURSOR;
102
103#define HFILE_ERROR ((HFILE)-1)
104
105typedef struct tagRECT {
111
112typedef const RECT *LPCRECT;
113
114typedef struct _RECTL {
120
121typedef const RECTL *LPCRECTL;
122
123typedef struct tagPOINT {
127
128typedef struct _POINTL {
132
133typedef struct tagSIZE {
137
138typedef SIZE SIZEL;
140
141typedef struct tagPOINTS {
145
146#define DM_UPDATE 1
147#define DM_COPY 2
148#define DM_PROMPT 4
149#define DM_MODIFY 8
150
151#define DM_IN_BUFFER DM_MODIFY
152#define DM_IN_PROMPT DM_PROMPT
153#define DM_OUT_BUFFER DM_COPY
154#define DM_OUT_DEFAULT DM_UPDATE
155
156#define DC_FIELDS 1
157#define DC_PAPERS 2
158#define DC_PAPERSIZE 3
159#define DC_MINEXTENT 4
160#define DC_MAXEXTENT 5
161#define DC_BINS 6
162#define DC_DUPLEX 7
163#define DC_SIZE 8
164#define DC_EXTRA 9
165#define DC_VERSION 10
166#define DC_DRIVER 11
167#define DC_BINNAMES 12
168#define DC_ENUMRESOLUTIONS 13
169#define DC_FILEDEPENDENCIES 14
170#define DC_TRUETYPE 15
171#define DC_PAPERNAMES 16
172#define DC_ORIENTATION 17
173#define DC_COPIES 18
174
175/* needed by header files generated by WIDL */
176#ifdef __WINESRC__
177#define WINE_NO_UNICODE_MACROS
178#endif
179
180#ifdef WINE_NO_UNICODE_MACROS
181# define WINELIB_NAME_AW(func) \
182 func##_must_be_suffixed_with_W_or_A_in_this_context \
183 func##_must_be_suffixed_with_W_or_A_in_this_context
184#else /* WINE_NO_UNICODE_MACROS */
185# ifdef UNICODE
186# define WINELIB_NAME_AW(func) func##W
187# else
188# define WINELIB_NAME_AW(func) func##A
189# endif
190#endif /* WINE_NO_UNICODE_MACROS */
191
192#ifdef WINE_NO_UNICODE_MACROS
193# define DECL_WINELIB_TYPE_AW(type) /* nothing */
194#else
195# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type;
196#endif
197
198#ifndef __WATCOMC__
199#ifndef _export
200#define _export
201#endif
202#ifndef __export
203#define __export
204#endif
205#endif
206
207#if 0
208#ifdef __GNUC__
209#define PACKED __attribute__((packed))
210//#ifndef _fastcall
211//#define _fastcall __attribute__((fastcall))
212//#endif
213//#ifndef __fastcall
214//#define __fastcall __attribute__((fastcall))
215//#endif
216//#ifndef _stdcall
217//#define _stdcall __attribute__((stdcall))
218//#endif
219//#ifndef __stdcall
220//#define __stdcall __attribute__((stdcall))
221//#endif
222//#ifndef _cdecl
223//#define _cdecl __attribute__((cdecl))
224//#endif
225//#ifndef __cdecl
226//#define __cdecl __attribute__((cdecl))
227//#endif
228#ifndef __declspec
229#define __declspec(e) __attribute__((e))
230#endif
231#ifndef _declspec
232#define _declspec(e) __attribute__((e))
233#endif
234#elif defined(__WATCOMC__)
235#define PACKED
236#else
237#define PACKED
238#define _cdecl
239#define __cdecl
240#endif
241#endif
242
243#if 1 // needed by shlwapi.h
244#ifndef __ms_va_list
245# if defined(__x86_64__) && defined (__GNUC__)
246# define __ms_va_list __builtin_ms_va_list
247# define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
248# define __ms_va_end(list) __builtin_ms_va_end(list)
249# else
250# define __ms_va_list va_list
251# define __ms_va_start(list,arg) va_start(list,arg)
252# define __ms_va_end(list) va_end(list)
253# endif
254#endif
255#endif
256
257#ifdef _MSC_VER
258#pragma warning(pop)
259#endif
260
261#ifdef __cplusplus
262}
263#endif
264
265#endif /* _WINDEF_ */
266
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:130
LONG x
Definition: windef.h:129
Definition: windef.h:114
LONG top
Definition: windef.h:116
LONG left
Definition: windef.h:115
LONG right
Definition: windef.h:117
LONG bottom
Definition: windef.h:118
SHORT y
Definition: windef.h:143
SHORT x
Definition: windef.h:142
LONG y
Definition: windef.h:125
LONG x
Definition: windef.h:124
LONG right
Definition: windef.h:108
LONG bottom
Definition: windef.h:109
LONG top
Definition: windef.h:107
LONG left
Definition: windef.h:106
LONG cx
Definition: windef.h:134
LONG cy
Definition: windef.h:135
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
DPI_HOSTING_BEHAVIOR
Definition: windef.h:93
@ DPI_HOSTING_BEHAVIOR_INVALID
Definition: windef.h:94
@ DPI_HOSTING_BEHAVIOR_DEFAULT
Definition: windef.h:95
@ DPI_HOSTING_BEHAVIOR_MIXED
Definition: windef.h:96
struct tagRECT RECT
struct tagPOINT * PPOINT
DWORD * LPCOLORREF
Definition: windef.h:101
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:121
SIZE SIZEL
Definition: windef.h:138
struct tagPOINTS * LPPOINTS
SIZE * PSIZEL
Definition: windef.h:139
struct tagSIZE SIZE
const RECT * LPCRECT
Definition: windef.h:112
LONG HRESULT
Definition: windef.h:48
void * HGDIOBJ
Definition: windef.h:59
struct tagSIZE * LPSIZE
struct _RECTL RECTL
DWORD COLORREF
Definition: windef.h:100
struct _RECTL * PRECTL
HICON HCURSOR
Definition: windef.h:99
struct tagRECT * NPRECT
SIZE * LPSIZEL
Definition: windef.h:139
int WINBOOL
Definition: windef.h:45
struct tagSIZE * PSIZE