Move declarations from windows.h to wingdi.h and winuser.h.

oldstable
Veksler Michael 1998-12-15 11:15:35 +00:00 committed by Alexandre Julliard
parent ad7538bfc5
commit 1346a3cd8d
4 changed files with 2774 additions and 2739 deletions

File diff suppressed because it is too large Load Diff

2615
include/wingdi.h 100644

File diff suppressed because it is too large Load Diff

View File

@ -406,6 +406,81 @@ DECL_WINELIB_TYPE(HWND)
extern int __winelib;
#endif /* __WINE__ */
/* The SIZE structure */
typedef struct
{
INT16 cx;
INT16 cy;
} SIZE16, *LPSIZE16;
typedef struct
{
INT32 cx;
INT32 cy;
} SIZE32, *LPSIZE32;
DECL_WINELIB_TYPE(SIZE)
DECL_WINELIB_TYPE(LPSIZE)
#define CONV_SIZE16TO32(s16,s32) \
((s32)->cx = (INT32)(s16)->cx, (s32)->cy = (INT32)(s16)->cy)
#define CONV_SIZE32TO16(s32,s16) \
((s16)->cx = (INT16)(s32)->cx, (s16)->cy = (INT16)(s32)->cy)
/* The POINT structure */
typedef struct
{
INT16 x;
INT16 y;
} POINT16, *LPPOINT16;
typedef struct
{
INT32 x;
INT32 y;
} POINT32, *LPPOINT32;
DECL_WINELIB_TYPE(POINT)
DECL_WINELIB_TYPE(LPPOINT)
#define CONV_POINT16TO32(p16,p32) \
((p32)->x = (INT32)(p16)->x, (p32)->y = (INT32)(p16)->y)
#define CONV_POINT32TO16(p32,p16) \
((p16)->x = (INT16)(p32)->x, (p16)->y = (INT16)(p32)->y)
#define MAKEPOINT16(l) (*((POINT16 *)&(l)))
#define MAKEPOINT WINELIB_NAME(MAKEPOINT)
/* The RECT structure */
typedef struct
{
INT16 left;
INT16 top;
INT16 right;
INT16 bottom;
} RECT16, *LPRECT16;
typedef struct
{
INT32 left;
INT32 top;
INT32 right;
INT32 bottom;
} RECT32, *LPRECT32;
DECL_WINELIB_TYPE(RECT)
DECL_WINELIB_TYPE(LPRECT)
#define CONV_RECT16TO32(r16,r32) \
((r32)->left = (INT32)(r16)->left, (r32)->top = (INT32)(r16)->top, \
(r32)->right = (INT32)(r16)->right, (r32)->bottom = (INT32)(r16)->bottom)
#define CONV_RECT32TO16(r32,r16) \
((r16)->left = (INT16)(r32)->left, (r16)->top = (INT16)(r32)->top, \
(r16)->right = (INT16)(r32)->right, (r16)->bottom = (INT16)(r32)->bottom)
#ifdef __cplusplus
}
#endif

79
include/winuser.h 100644
View File

@ -0,0 +1,79 @@
#ifndef __INCLUDE_WINUSER_H
#define __INCLUDE_WINUSER_H
#include "wintypes.h"
#include "wingdi.h"
#pragma pack(1)
/*
* FIXME This is very partial. Only the few things that help partitioning
* got here
*/
typedef struct _PRINTER_DEFAULTS32A {
LPSTR pDatatype;
LPDEVMODE32A pDevMode;
ACCESS_MASK DesiredAccess;
} PRINTER_DEFAULTS32A, *LPPRINTER_DEFAULTS32A;
typedef struct _PRINTER_DEFAULTS32W {
LPWSTR pDatatype;
LPDEVMODE32W pDevMode;
ACCESS_MASK DesiredAccess;
} PRINTER_DEFAULTS32W, *LPPRINTER_DEFAULTS32W;
DECL_WINELIB_TYPE_AW(PRINTER_DEFAULTS)
DECL_WINELIB_TYPE_AW(LPPRINTER_DEFAULTS)
#define MONITOR_DEFAULTTONULL 0x00000000
#define MONITOR_DEFAULTTOPRIMARY 0x00000001
#define MONITOR_DEFAULTTONEAREST 0x00000002
#define MONITORINFOF_PRIMARY 0x00000001
typedef struct tagMONITORINFO
{
DWORD cbSize;
RECT32 rcMonitor;
RECT32 rcWork;
DWORD dwFlags;
} MONITORINFO, *LPMONITORINFO;
typedef struct tagMONITORINFOEX32A
{
MONITORINFO dummy;
CHAR szDevice[CCHDEVICENAME];
} MONITORINFOEX32A, *LPMONITORINFOEX32A;
typedef struct tagMONITORINFOEX32W
{
MONITORINFO dummy;
WCHAR szDevice[CCHDEVICENAME];
} MONITORINFOEX32W, *LPMONITORINFOEX32W;
DECL_WINELIB_TYPE_AW(MONITORINFOEX)
DECL_WINELIB_TYPE_AW(LPMONITORINFOEX)
typedef BOOL32 (CALLBACK *MONITORENUMPROC)(HMONITOR,HDC32,LPRECT32,LPARAM);
#pragma pack(4)
BOOL32 WINAPI EnumDisplayMonitors(HDC32,LPRECT32,MONITORENUMPROC,LPARAM);
BOOL32 WINAPI GetMonitorInfo32A(HMONITOR,LPMONITORINFO);
BOOL32 WINAPI GetMonitorInfo32W(HMONITOR,LPMONITORINFO);
#define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
HDC16 WINAPI BeginPaint16(HWND16,LPPAINTSTRUCT16);
HDC32 WINAPI BeginPaint32(HWND32,LPPAINTSTRUCT32);
#define BeginPaint WINELIB_NAME(BeginPaint)
BOOL16 WINAPI EndPaint16(HWND16,const PAINTSTRUCT16*);
BOOL32 WINAPI EndPaint32(HWND32,const PAINTSTRUCT32*);
#define EndPaint WINELIB_NAME(EndPaint)
COLORREF WINAPI GetSysColor16(INT16);
COLORREF WINAPI GetSysColor32(INT32);
#define GetSysColor WINELIB_NAME(GetSysColor)
VOID WINAPI SetSysColors16(INT16,const INT16*,const COLORREF*);
BOOL32 WINAPI SetSysColors32(INT32,const INT32*,const COLORREF*);
#define SetSysColors WINELIB_NAME(SetSysColors)
#endif /* __INCLUDE_WINUSER_H */