14#pragma warning(disable:4255)
17#if defined(__LP64__) || (!defined(_M_AMD64) && defined(__WINESRC__))
18#if !defined(__ROS_LONG64__)
33#if defined(_MAC) && !defined(_WIN32)
50typedef unsigned int ULONG;
72#define NULL ((void *)0)
84#ifndef _NO_W32_PSEUDO_MODIFIERS
97#define PACKED __attribute__((packed))
99#define __declspec(e) __attribute__((e))
102#define _declspec(e) __attribute__((e))
104#elif defined(__WATCOMC__)
116#define pascal __stdcall
123#if !defined(__x86_64__)
125#define CALLBACK __stdcall
128#define WINAPI __stdcall
130#define WINAPIV __cdecl
131#define APIENTRY WINAPI
132#define APIPRIVATE WINAPI
138#define APIENTRY WINAPI
155#pragma push_macro("BOOL")
157#if !defined(__OBJC__) && !defined(__OBJC_BOOL) && !defined(__objc_INCLUDE_GNU)
163#pragma pop_macro("BOOL")
168#ifndef __ROS_LONG64__
171 typedef unsigned int DWORD;
181#ifndef __ROS_LONG64__
189#ifndef _LPCVOID_DEFINED
190#define _LPCVOID_DEFINED
210#ifndef _HRESULT_DEFINED
212#define _HRESULT_DEFINED
217#define max(a, b) (((a) > (b)) ? (a) : (b))
220#define min(a, b) (((a) < (b)) ? (a) : (b))
224#define MAKEWORD(bLow, bHigh) ((WORD)(((BYTE)((DWORD_PTR)(bLow) & 0xff )) | (((WORD)((BYTE)((DWORD_PTR)(bHigh) & 0xff))) << 8 )))
225#define MAKELONG(wLow, wHigh) ((LONG)(((WORD)((DWORD_PTR)(wLow) & 0xffff)) | (((DWORD)((WORD)((DWORD_PTR)(wHigh) & 0xffff))) << 16)))
226#define LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))
227#define HIWORD(l) ((WORD)(((DWORD_PTR)(l) >> 16) & 0xffff))
228#define LOBYTE(w) ((BYTE)((DWORD_PTR)(w) & 0xff))
229#define HIBYTE(w) ((BYTE)(((DWORD_PTR)(w) >> 8) & 0xff))
292#define DPI_AWARENESS_CONTEXT_UNAWARE ((DPI_AWARENESS_CONTEXT)-1)
293#define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE ((DPI_AWARENESS_CONTEXT)-2)
294#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE ((DPI_AWARENESS_CONTEXT)-3)
295#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((DPI_AWARENESS_CONTEXT)-4)
296#define DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED ((DPI_AWARENESS_CONTEXT)-5)
303#define HFILE_ERROR ((HFILE)-1)
357#define DM_IN_BUFFER DM_MODIFY
358#define DM_IN_PROMPT DM_PROMPT
359#define DM_OUT_BUFFER DM_COPY
360#define DM_OUT_DEFAULT DM_UPDATE
364#define DC_PAPERSIZE 3
365#define DC_MINEXTENT 4
366#define DC_MAXEXTENT 5
373#define DC_BINNAMES 12
374#define DC_ENUMRESOLUTIONS 13
375#define DC_FILEDEPENDENCIES 14
376#define DC_TRUETYPE 15
377#define DC_PAPERNAMES 16
378#define DC_ORIENTATION 17
383#define WINE_NO_UNICODE_MACROS
386#ifdef WINE_NO_UNICODE_MACROS
387# define WINELIB_NAME_AW(func) \
388 func##_must_be_suffixed_with_W_or_A_in_this_context \
389 func##_must_be_suffixed_with_W_or_A_in_this_context
392# define WINELIB_NAME_AW(func) func##W
394# define WINELIB_NAME_AW(func) func##A
398#ifdef WINE_NO_UNICODE_MACROS
399# define DECL_WINELIB_TYPE_AW(type)
401# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type;
415#define PACKED __attribute__((packed))
435#define __declspec(e) __attribute__((e))
438#define _declspec(e) __attribute__((e))
440#elif defined(__WATCOMC__)
451# if defined(__x86_64__) && defined (__GNUC__)
452# define __ms_va_list __builtin_ms_va_list
453# define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
454# define __ms_va_end(list) __builtin_ms_va_end(list)
456# define __ms_va_list va_list
457# define __ms_va_start(list,arg) va_start(list,arg)
458# define __ms_va_end(list) va_end(list)
#define DECLARE_HANDLE(name)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static HWINEVENTHOOK(WINAPI *pSetWinEventHook)(DWORD
static UINT UINT *static DPI_AWARENESS_CONTEXT(WINAPI *pGetThreadDpiAwarenessContext)(void)
unsigned __int3264 UINT_PTR
static HGLRC(WINAPI *pwglCreateContextAttribsARB)(HDC hDC
@ DPI_AWARENESS_PER_MONITOR_AWARE
@ DPI_AWARENESS_SYSTEM_AWARE
INT_PTR(WINAPI * NEARPROC)()
struct tagPOINTS * PPOINTS
struct tagPOINT * NPPOINT
struct tagPOINT * LPPOINT
struct tagPOINTS * LPPOINTS
struct _FILETIME FILETIME
struct _FILETIME * PFILETIME
INT_PTR(WINAPI * FARPROC)()
struct _FILETIME * LPFILETIME