2021-06-30 15:37:41 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2021 Jacek Caban for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NTGDI_
|
|
|
|
#define _NTGDI_
|
|
|
|
|
|
|
|
#include <wingdi.h>
|
2021-08-25 12:39:45 +00:00
|
|
|
#include <winternl.h>
|
2021-08-23 11:50:47 +00:00
|
|
|
#include <winspool.h>
|
2021-08-25 12:39:45 +00:00
|
|
|
#include <ddk/d3dkmthk.h>
|
2021-06-30 15:37:41 +00:00
|
|
|
|
|
|
|
typedef struct _GDI_HANDLE_ENTRY
|
|
|
|
{
|
|
|
|
UINT64 Object;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
USHORT ProcessId;
|
|
|
|
USHORT Lock : 1;
|
|
|
|
USHORT Count : 15;
|
|
|
|
};
|
|
|
|
ULONG Value;
|
|
|
|
} Owner;
|
2021-07-08 15:11:26 +00:00
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
UCHAR ExtType : 7;
|
|
|
|
UCHAR StockFlag : 1;
|
|
|
|
UCHAR Generation;
|
|
|
|
};
|
|
|
|
USHORT Unique;
|
|
|
|
};
|
|
|
|
UCHAR Type;
|
|
|
|
UCHAR Flags;
|
2021-06-30 15:37:41 +00:00
|
|
|
UINT64 UserPointer;
|
|
|
|
} GDI_HANDLE_ENTRY, *PGDI_HANDLE_ENTRY;
|
|
|
|
|
|
|
|
#define GDI_MAX_HANDLE_COUNT 0x10000
|
|
|
|
|
2021-09-03 12:59:47 +00:00
|
|
|
#define NTGDI_OBJ_DC 0x010000
|
|
|
|
#define NTGDI_OBJ_ENHMETADC 0x210000
|
|
|
|
#define NTGDI_OBJ_REGION 0x040000
|
2021-09-03 12:59:48 +00:00
|
|
|
#define NTGDI_OBJ_SURF 0x050000
|
2021-09-03 12:59:47 +00:00
|
|
|
#define NTGDI_OBJ_METAFILE 0x260000
|
|
|
|
#define NTGDI_OBJ_ENHMETAFILE 0x460000
|
|
|
|
#define NTGDI_OBJ_METADC 0x660000
|
|
|
|
#define NTGDI_OBJ_PAL 0x080000
|
|
|
|
#define NTGDI_OBJ_BITMAP 0x090000
|
|
|
|
#define NTGDI_OBJ_FONT 0x0a0000
|
|
|
|
#define NTGDI_OBJ_BRUSH 0x100000
|
|
|
|
#define NTGDI_OBJ_PEN 0x300000
|
|
|
|
#define NTGDI_OBJ_EXTPEN 0x500000
|
2021-07-08 15:11:26 +00:00
|
|
|
|
|
|
|
/* Wine extension, native uses NTGDI_OBJ_DC */
|
2021-09-03 12:59:47 +00:00
|
|
|
#define NTGDI_OBJ_MEMDC 0x410000
|
2021-07-08 15:11:26 +00:00
|
|
|
|
2021-08-06 14:59:07 +00:00
|
|
|
#define NTGDI_HANDLE_TYPE_SHIFT 16
|
|
|
|
#define NTGDI_HANDLE_TYPE_MASK 0x007f0000
|
|
|
|
#define NTGDI_HANDLE_STOCK_OBJECT 0x00800000
|
2021-07-17 15:00:55 +00:00
|
|
|
|
2021-06-30 15:37:41 +00:00
|
|
|
typedef struct _GDI_SHARED_MEMORY
|
|
|
|
{
|
|
|
|
GDI_HANDLE_ENTRY Handles[GDI_MAX_HANDLE_COUNT];
|
|
|
|
} GDI_SHARED_MEMORY, *PGDI_SHARED_MEMORY;
|
|
|
|
|
2021-07-17 14:56:54 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtGdiArc,
|
|
|
|
NtGdiArcTo,
|
|
|
|
NtGdiChord,
|
|
|
|
NtGdiPie,
|
|
|
|
};
|
|
|
|
|
2021-07-22 09:25:17 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtGdiPolyPolygon = 1,
|
|
|
|
NtGdiPolyPolyline,
|
|
|
|
NtGdiPolyBezier,
|
|
|
|
NtGdiPolyBezierTo,
|
|
|
|
NtGdiPolylineTo,
|
|
|
|
NtGdiPolyPolygonRgn,
|
|
|
|
};
|
|
|
|
|
2021-08-05 09:25:32 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtGdiLPtoDP,
|
|
|
|
NtGdiDPtoLP,
|
|
|
|
};
|
|
|
|
|
2021-08-05 09:25:57 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtGdiSetMapMode = 8,
|
2021-08-16 08:28:29 +00:00
|
|
|
/* not compatible with Windows */
|
|
|
|
NtGdiSetBkColor = 100,
|
2022-06-08 19:25:00 +00:00
|
|
|
NtGdiSetBkMode,
|
2021-08-16 08:28:42 +00:00
|
|
|
NtGdiSetTextColor,
|
2021-08-19 08:24:44 +00:00
|
|
|
NtGdiSetDCBrushColor,
|
2021-08-19 08:24:55 +00:00
|
|
|
NtGdiSetDCPenColor,
|
2021-08-31 12:18:34 +00:00
|
|
|
NtGdiSetGraphicsMode,
|
2022-06-08 19:25:00 +00:00
|
|
|
NtGdiSetROP2,
|
2022-06-10 13:52:01 +00:00
|
|
|
NtGdiSetTextAlign,
|
2021-08-05 09:25:57 +00:00
|
|
|
};
|
|
|
|
|
2022-04-12 11:08:54 +00:00
|
|
|
/* NtGdiGetDCDword parameter, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtGdiGetArcDirection,
|
|
|
|
NtGdiGetBkColor,
|
|
|
|
NtGdiGetBkMode,
|
|
|
|
NtGdiGetDCBrushColor,
|
|
|
|
NtGdiGetDCPenColor,
|
|
|
|
NtGdiGetGraphicsMode,
|
|
|
|
NtGdiGetLayout,
|
|
|
|
NtGdiGetPolyFillMode,
|
|
|
|
NtGdiGetROP2,
|
|
|
|
NtGdiGetTextColor,
|
|
|
|
NtGdiIsMemDC,
|
|
|
|
};
|
|
|
|
|
2022-04-12 11:09:06 +00:00
|
|
|
/* NtGdiGetDCPoint parameter, not compatible with Windows */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtGdiGetBrushOrgEx,
|
|
|
|
NtGdiGetCurrentPosition,
|
|
|
|
NtGdiGetDCOrg,
|
|
|
|
};
|
|
|
|
|
2021-08-16 08:27:30 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
NtGdiAnimatePalette,
|
|
|
|
NtGdiSetPaletteEntries,
|
|
|
|
NtGdiGetPaletteEntries,
|
|
|
|
NtGdiGetSystemPaletteEntries,
|
|
|
|
NtGdiGetDIBColorTable,
|
|
|
|
NtGdiSetDIBColorTable,
|
|
|
|
};
|
|
|
|
|
2021-08-26 12:45:14 +00:00
|
|
|
#define NTGDI_GETCHARWIDTH_INT 0x02
|
|
|
|
#define NTGDI_GETCHARWIDTH_INDICES 0x08
|
|
|
|
|
2021-08-27 12:51:48 +00:00
|
|
|
#define NTGDI_GETCHARABCWIDTHS_INT 0x01
|
|
|
|
#define NTGDI_GETCHARABCWIDTHS_INDICES 0x02
|
|
|
|
|
2021-08-13 10:08:00 +00:00
|
|
|
#define MWT_SET 4
|
|
|
|
|
2021-07-17 15:01:49 +00:00
|
|
|
/* structs not compatible with native Windows */
|
|
|
|
#ifdef __WINESRC__
|
|
|
|
|
|
|
|
typedef struct DC_ATTR
|
|
|
|
{
|
2022-07-30 00:48:02 +00:00
|
|
|
UINT hdc; /* handle to self */
|
2021-08-26 12:50:04 +00:00
|
|
|
LONG disabled; /* disabled flag, controlled by DCHF_(DISABLE|ENABLE)DC */
|
2021-08-17 09:37:21 +00:00
|
|
|
int save_level;
|
2021-07-28 09:39:37 +00:00
|
|
|
COLORREF background_color;
|
2021-07-30 11:00:45 +00:00
|
|
|
COLORREF brush_color;
|
2021-07-30 11:00:54 +00:00
|
|
|
COLORREF pen_color;
|
2021-07-28 09:40:07 +00:00
|
|
|
COLORREF text_color;
|
2021-07-17 15:01:49 +00:00
|
|
|
POINT cur_pos;
|
2021-07-20 07:19:14 +00:00
|
|
|
INT graphics_mode;
|
2021-07-28 09:40:15 +00:00
|
|
|
INT arc_direction;
|
2021-07-28 09:39:26 +00:00
|
|
|
DWORD layout;
|
2021-07-23 08:49:19 +00:00
|
|
|
WORD text_align;
|
2021-07-26 21:29:51 +00:00
|
|
|
WORD background_mode;
|
2021-07-29 12:22:00 +00:00
|
|
|
WORD poly_fill_mode;
|
2021-07-28 09:39:05 +00:00
|
|
|
WORD rop_mode;
|
2021-07-29 12:21:58 +00:00
|
|
|
WORD rel_abs_mode;
|
2021-07-29 12:22:02 +00:00
|
|
|
WORD stretch_blt_mode;
|
2021-07-29 12:22:04 +00:00
|
|
|
INT map_mode;
|
2021-08-05 09:26:13 +00:00
|
|
|
INT char_extra;
|
2021-08-05 09:26:43 +00:00
|
|
|
DWORD mapper_flags; /* font mapper flags */
|
2021-08-02 08:03:33 +00:00
|
|
|
RECT vis_rect; /* visible rectangle in screen coords */
|
2021-07-30 11:01:05 +00:00
|
|
|
FLOAT miter_limit;
|
2021-08-03 10:56:21 +00:00
|
|
|
POINT brush_org; /* brush origin */
|
2021-08-03 10:56:01 +00:00
|
|
|
POINT wnd_org; /* window origin */
|
2021-08-03 10:56:10 +00:00
|
|
|
SIZE wnd_ext; /* window extent */
|
2021-08-03 10:55:55 +00:00
|
|
|
POINT vport_org; /* viewport origin */
|
2021-08-03 10:55:47 +00:00
|
|
|
SIZE vport_ext; /* viewport extent */
|
2021-08-10 06:37:39 +00:00
|
|
|
SIZE virtual_res;
|
|
|
|
SIZE virtual_size;
|
2021-08-20 08:42:24 +00:00
|
|
|
UINT font_code_page;
|
2021-08-23 11:50:39 +00:00
|
|
|
RECTL emf_bounds;
|
2022-07-30 00:48:02 +00:00
|
|
|
UINT64 emf; /* client EMF record pointer */
|
|
|
|
UINT64 abort_proc; /* AbortProc for printing */
|
2022-11-21 11:45:33 +00:00
|
|
|
UINT64 hspool;
|
|
|
|
UINT64 output;
|
2021-07-17 15:01:49 +00:00
|
|
|
} DC_ATTR;
|
|
|
|
|
2021-09-01 12:08:27 +00:00
|
|
|
struct font_enum_entry
|
|
|
|
{
|
|
|
|
DWORD type;
|
|
|
|
ENUMLOGFONTEXW lf;
|
|
|
|
NEWTEXTMETRICEXW tm;
|
|
|
|
};
|
|
|
|
|
2021-09-02 12:14:00 +00:00
|
|
|
/* flag for NtGdiGetRandomRgn to respect LAYOUT_RTL */
|
|
|
|
#define NTGDI_RGN_MIRROR_RTL 0x80000000
|
|
|
|
|
2022-03-21 13:13:56 +00:00
|
|
|
/* magic driver version that we use for win16 DCs with DIB surfaces */
|
|
|
|
#define NTGDI_WIN16_DIB 0xfafa000
|
|
|
|
|
2021-07-17 15:01:49 +00:00
|
|
|
#endif /* __WINESRC__ */
|
|
|
|
|
2021-08-30 11:54:30 +00:00
|
|
|
struct font_realization_info
|
|
|
|
{
|
|
|
|
DWORD size; /* could be 16 or 24 */
|
|
|
|
DWORD flags; /* 1 for bitmap fonts, 3 for scalable fonts */
|
|
|
|
DWORD cache_num; /* keeps incrementing */
|
|
|
|
DWORD instance_id; /* identifies a realized font instance */
|
|
|
|
DWORD file_count; /* number of files that make up this font */
|
|
|
|
WORD face_index; /* face index in case of font collections */
|
|
|
|
WORD simulations; /* 0 bit - bold simulation, 1 bit - oblique simulation */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct char_width_info
|
|
|
|
{
|
|
|
|
INT lsb; /* minimum left side bearing */
|
|
|
|
INT rsb; /* minimum right side bearing */
|
|
|
|
INT unk; /* unknown */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct font_fileinfo
|
|
|
|
{
|
|
|
|
FILETIME writetime;
|
|
|
|
LARGE_INTEGER size;
|
|
|
|
WCHAR path[1];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiAbortDoc( HDC hdc );
|
|
|
|
BOOL WINAPI NtGdiAbortPath( HDC hdc );
|
2021-09-01 12:08:41 +00:00
|
|
|
HANDLE WINAPI NtGdiAddFontMemResourceEx( void *ptr, DWORD size, void *dv, ULONG dv_size,
|
|
|
|
DWORD *count );
|
2021-09-01 12:08:52 +00:00
|
|
|
INT WINAPI NtGdiAddFontResourceW( const WCHAR *str, ULONG size, ULONG files, DWORD flags,
|
|
|
|
DWORD tid, void *dv );
|
2021-08-12 10:00:31 +00:00
|
|
|
BOOL WINAPI NtGdiAlphaBlend( HDC hdc_dst, int x_dst, int y_dst, int width_dst, int height_dst,
|
|
|
|
HDC hdc_src, int x_src, int y_src, int width_src, int height_src,
|
|
|
|
BLENDFUNCTION blend_function, HANDLE xform );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiAngleArc( HDC hdc, INT x, INT y, DWORD radius, FLOAT start_angle,
|
|
|
|
FLOAT sweep_angle );
|
|
|
|
BOOL WINAPI NtGdiArcInternal( UINT type, HDC hdc, INT left, INT top, INT right, INT bottom,
|
|
|
|
INT xstart, INT ystart, INT xend, INT yend );
|
|
|
|
BOOL WINAPI NtGdiBeginPath( HDC hdc );
|
2021-08-12 10:00:25 +00:00
|
|
|
BOOL WINAPI NtGdiBitBlt( HDC hdc_dst, INT x_dst, INT y_dst, INT width, INT height, HDC hdc_src,
|
|
|
|
INT x_src, INT y_src, DWORD rop, DWORD bk_color, FLONG fl );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiCancelDC( HDC hdc );
|
|
|
|
BOOL WINAPI NtGdiCloseFigure( HDC hdc );
|
|
|
|
INT WINAPI NtGdiCombineRgn( HRGN dest, HRGN src1, HRGN src2, INT mode );
|
2021-08-10 06:37:40 +00:00
|
|
|
BOOL WINAPI NtGdiComputeXformCoefficients( HDC hdc );
|
2021-06-30 15:37:41 +00:00
|
|
|
HBITMAP WINAPI NtGdiCreateBitmap( INT width, INT height, UINT planes,
|
|
|
|
UINT bpp, const void *bits );
|
2021-09-20 11:12:53 +00:00
|
|
|
HANDLE WINAPI NtGdiCreateClientObj( ULONG type );
|
2021-08-31 12:18:33 +00:00
|
|
|
HBITMAP WINAPI NtGdiCreateCompatibleBitmap( HDC hdc, INT width, INT height );
|
2021-09-20 11:12:53 +00:00
|
|
|
HDC WINAPI NtGdiCreateCompatibleDC( HDC hdc );
|
|
|
|
HBRUSH WINAPI NtGdiCreateDIBBrush( const void *data, UINT coloruse, UINT size,
|
|
|
|
BOOL is_8x8, BOOL pen, const void *client );
|
|
|
|
HBITMAP WINAPI NtGdiCreateDIBSection( HDC hdc, HANDLE section, DWORD offset, const BITMAPINFO *bmi,
|
|
|
|
UINT usage, UINT header_size, ULONG flags,
|
|
|
|
ULONG_PTR color_space, void **bits );
|
2021-08-31 12:18:36 +00:00
|
|
|
HBITMAP WINAPI NtGdiCreateDIBitmapInternal( HDC hdc, INT width, INT height, DWORD init,
|
|
|
|
const void *bits, const BITMAPINFO *data,
|
|
|
|
UINT coloruse, UINT max_info, UINT max_bits,
|
|
|
|
ULONG flags, HANDLE xform );
|
2021-09-20 11:12:53 +00:00
|
|
|
HRGN WINAPI NtGdiCreateEllipticRgn( INT left, INT top, INT right, INT bottom );
|
2021-08-16 08:27:16 +00:00
|
|
|
HPALETTE WINAPI NtGdiCreateHalftonePalette( HDC hdc );
|
2021-06-30 15:37:41 +00:00
|
|
|
HBRUSH WINAPI NtGdiCreateHatchBrushInternal( INT style, COLORREF color, BOOL pen );
|
2021-08-23 11:51:50 +00:00
|
|
|
HDC WINAPI NtGdiCreateMetafileDC( HDC hdc );
|
2021-08-16 08:26:58 +00:00
|
|
|
HPALETTE WINAPI NtGdiCreatePaletteInternal( const LOGPALETTE *palette, UINT count );
|
2021-08-25 12:39:51 +00:00
|
|
|
HBRUSH WINAPI NtGdiCreatePatternBrushInternal( HBITMAP hbitmap, BOOL pen, BOOL is_8x8 );
|
2021-07-05 11:40:15 +00:00
|
|
|
HPEN WINAPI NtGdiCreatePen( INT style, INT width, COLORREF color, HBRUSH brush );
|
2021-06-30 15:37:41 +00:00
|
|
|
HRGN WINAPI NtGdiCreateRectRgn( INT left, INT top, INT right, INT bottom );
|
|
|
|
HRGN WINAPI NtGdiCreateRoundRectRgn( INT left, INT top, INT right, INT bottom,
|
|
|
|
INT ellipse_width, INT ellipse_height );
|
2021-08-25 12:39:49 +00:00
|
|
|
HBRUSH WINAPI NtGdiCreateSolidBrush( COLORREF color, HBRUSH brush );
|
2021-07-09 13:28:39 +00:00
|
|
|
BOOL WINAPI NtGdiDeleteClientObj( HGDIOBJ obj );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiDeleteObjectApp( HGDIOBJ obj );
|
2021-09-10 12:28:04 +00:00
|
|
|
INT WINAPI NtGdiDescribePixelFormat( HDC hdc, INT format, UINT size,
|
|
|
|
PIXELFORMATDESCRIPTOR *descr );
|
2021-06-30 15:37:41 +00:00
|
|
|
LONG WINAPI NtGdiDoPalette( HGDIOBJ handle, WORD start, WORD count, void *entries,
|
|
|
|
DWORD func, BOOL inbound );
|
2021-09-20 11:12:53 +00:00
|
|
|
BOOL WINAPI NtGdiDrawStream( HDC hdc, ULONG in, void *pvin );
|
|
|
|
BOOL WINAPI NtGdiEllipse( HDC hdc, INT left, INT top, INT right, INT bottom );
|
|
|
|
INT WINAPI NtGdiEndDoc( HDC hdc );
|
|
|
|
BOOL WINAPI NtGdiEndPath( HDC hdc );
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiEndPage( HDC hdc );
|
2021-09-20 11:12:53 +00:00
|
|
|
BOOL WINAPI NtGdiEnumFonts( HDC hdc, ULONG type, ULONG win32_compat, ULONG face_name_len,
|
|
|
|
const WCHAR *face_name, ULONG charset, ULONG *count, void *buf );
|
|
|
|
BOOL WINAPI NtGdiEqualRgn( HRGN hrgn1, HRGN hrgn2 );
|
|
|
|
INT WINAPI NtGdiExcludeClipRect( HDC hdc, INT left, INT top, INT right, INT bottom );
|
2021-08-31 12:18:32 +00:00
|
|
|
HPEN WINAPI NtGdiExtCreatePen( DWORD style, DWORD width, ULONG brush_style, ULONG color,
|
|
|
|
ULONG_PTR client_hatch, ULONG_PTR hatch, DWORD style_count,
|
|
|
|
const DWORD *style_bits, ULONG dib_size, BOOL old_style,
|
|
|
|
HBRUSH brush );
|
2021-08-13 10:09:34 +00:00
|
|
|
INT WINAPI NtGdiExtEscape( HDC hdc, WCHAR *driver, INT driver_id, INT escape, INT input_size,
|
|
|
|
const char *input, INT output_size, char *output );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiExtFloodFill( HDC hdc, INT x, INT y, COLORREF color, UINT type );
|
2021-08-27 12:51:54 +00:00
|
|
|
BOOL WINAPI NtGdiExtTextOutW( HDC hdc, INT x, INT y, UINT flags, const RECT *rect,
|
|
|
|
const WCHAR *str, UINT count, const INT *dx, DWORD cp );
|
2021-09-20 11:12:53 +00:00
|
|
|
HRGN WINAPI NtGdiExtCreateRegion( const XFORM *xform, DWORD count, const RGNDATA *data );
|
|
|
|
INT WINAPI NtGdiExtGetObjectW( HGDIOBJ handle, INT count, void *buffer );
|
|
|
|
INT WINAPI NtGdiExtSelectClipRgn( HDC hdc, HRGN region, INT mode );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiFillPath( HDC hdc );
|
2021-09-20 11:12:53 +00:00
|
|
|
BOOL WINAPI NtGdiFillRgn( HDC hdc, HRGN hrgn, HBRUSH hbrush );
|
|
|
|
BOOL WINAPI NtGdiFlattenPath( HDC hdc );
|
|
|
|
BOOL WINAPI NtGdiFontIsLinked( HDC hdc );
|
|
|
|
BOOL WINAPI NtGdiFlush(void);
|
|
|
|
BOOL WINAPI NtGdiFrameRgn( HDC hdc, HRGN hrgn, HBRUSH brush, INT width, INT height );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiGetAndSetDCDword( HDC hdc, UINT method, DWORD value, DWORD *result );
|
|
|
|
INT WINAPI NtGdiGetAppClipBox( HDC hdc, RECT *rect );
|
2021-09-10 12:28:04 +00:00
|
|
|
LONG WINAPI NtGdiGetBitmapBits( HBITMAP bitmap, LONG count, void *bits );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiGetBitmapDimension( HBITMAP bitmap, SIZE *size );
|
|
|
|
UINT WINAPI NtGdiGetBoundsRect( HDC hdc, RECT *rect, UINT flags );
|
2021-08-27 12:51:48 +00:00
|
|
|
BOOL WINAPI NtGdiGetCharABCWidthsW( HDC hdc, UINT first, UINT last, WCHAR *chars,
|
|
|
|
ULONG flags, void *buffer );
|
2021-08-26 12:45:14 +00:00
|
|
|
BOOL WINAPI NtGdiGetCharWidthW( HDC hdc, UINT first_char, UINT last_char, WCHAR *chars,
|
|
|
|
ULONG flags, void *buffer );
|
2021-09-20 11:12:53 +00:00
|
|
|
BOOL WINAPI NtGdiGetCharWidthInfo( HDC hdc, struct char_width_info *info );
|
2021-08-30 11:57:05 +00:00
|
|
|
BOOL WINAPI NtGdiGetColorAdjustment( HDC hdc, COLORADJUSTMENT *ca );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiGetDCDword( HDC hdc, UINT method, DWORD *result );
|
2021-09-03 12:59:48 +00:00
|
|
|
HANDLE WINAPI NtGdiGetDCObject( HDC hdc, UINT type );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiGetDCPoint( HDC hdc, UINT method, POINT *result );
|
2021-08-31 12:18:35 +00:00
|
|
|
INT WINAPI NtGdiGetDIBitsInternal( HDC hdc, HBITMAP hbitmap, UINT startscan, UINT lines,
|
|
|
|
void *bits, BITMAPINFO *info, UINT coloruse,
|
|
|
|
UINT max_bits, UINT max_info );
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiGetDeviceCaps( HDC hdc, INT cap );
|
|
|
|
BOOL WINAPI NtGdiGetDeviceGammaRamp( HDC hdc, void *ptr );
|
2021-08-27 12:51:56 +00:00
|
|
|
DWORD WINAPI NtGdiGetFontData( HDC hdc, DWORD table, DWORD offset, void *buffer, DWORD length );
|
2021-08-30 11:54:30 +00:00
|
|
|
BOOL WINAPI NtGdiGetFontFileData( DWORD instance_id, DWORD file_index, UINT64 *offset,
|
|
|
|
void *buff, DWORD buff_size );
|
|
|
|
BOOL WINAPI NtGdiGetFontFileInfo( DWORD instance_id, DWORD file_index, struct font_fileinfo *info,
|
|
|
|
SIZE_T size, SIZE_T *needed );
|
|
|
|
DWORD WINAPI NtGdiGetFontUnicodeRanges( HDC hdc, GLYPHSET *lpgs );
|
2021-08-30 11:52:36 +00:00
|
|
|
DWORD WINAPI NtGdiGetGlyphIndicesW( HDC hdc, const WCHAR *str, INT count,
|
|
|
|
WORD *indices, DWORD flags );
|
2021-09-10 12:28:04 +00:00
|
|
|
DWORD WINAPI NtGdiGetGlyphOutline( HDC hdc, UINT ch, UINT format, GLYPHMETRICS *metrics,
|
|
|
|
DWORD size, void *buffer, const MAT2 *mat2,
|
|
|
|
BOOL ignore_rotation );
|
|
|
|
DWORD WINAPI NtGdiGetKerningPairs( HDC hdc, DWORD count, KERNINGPAIR *kern_pair );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiGetMiterLimit( HDC hdc, FLOAT *limit );
|
|
|
|
COLORREF WINAPI NtGdiGetNearestColor( HDC hdc, COLORREF color );
|
|
|
|
UINT WINAPI NtGdiGetNearestPaletteIndex( HPALETTE hpalette, COLORREF color );
|
|
|
|
UINT WINAPI NtGdiGetOutlineTextMetricsInternalW( HDC hdc, UINT cbData,
|
2021-07-23 08:52:06 +00:00
|
|
|
OUTLINETEXTMETRICW *otm, ULONG opts );
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiGetPath( HDC hdc, POINT *points, BYTE *types, INT size );
|
2021-07-23 08:52:06 +00:00
|
|
|
COLORREF WINAPI NtGdiGetPixel( HDC hdc, INT x, INT y );
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiGetRandomRgn( HDC hdc, HRGN region, INT code );
|
2021-08-30 11:54:30 +00:00
|
|
|
BOOL WINAPI NtGdiGetRasterizerCaps( RASTERIZER_STATUS *status, UINT size );
|
|
|
|
BOOL WINAPI NtGdiGetRealizationInfo( HDC hdc, struct font_realization_info *info );
|
2021-06-30 15:37:41 +00:00
|
|
|
DWORD WINAPI NtGdiGetRegionData( HRGN hrgn, DWORD count, RGNDATA *data );
|
|
|
|
INT WINAPI NtGdiGetRgnBox( HRGN hrgn, RECT *rect );
|
2021-09-20 11:12:53 +00:00
|
|
|
DWORD WINAPI NtGdiGetSpoolMessage( void *ptr1, DWORD data2, void *ptr3, DWORD data4 );
|
2021-08-16 08:27:16 +00:00
|
|
|
UINT WINAPI NtGdiGetSystemPaletteUse( HDC hdc );
|
2021-06-30 15:37:41 +00:00
|
|
|
UINT WINAPI NtGdiGetTextCharsetInfo( HDC hdc, FONTSIGNATURE *fs, DWORD flags );
|
2021-08-20 08:41:56 +00:00
|
|
|
BOOL WINAPI NtGdiGetTextExtentExW( HDC hdc, const WCHAR *str, INT count, INT max_ext,
|
|
|
|
INT *nfit, INT *dxs, SIZE *size, UINT flags );
|
2021-08-20 08:41:32 +00:00
|
|
|
INT WINAPI NtGdiGetTextFaceW( HDC hdc, INT count, WCHAR *name, BOOL alias_name );
|
2021-08-20 08:41:56 +00:00
|
|
|
BOOL WINAPI NtGdiGetTextMetricsW( HDC hdc, TEXTMETRICW *metrics, ULONG flags );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiGetTransform( HDC hdc, DWORD which, XFORM *xform );
|
|
|
|
BOOL WINAPI NtGdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
|
|
|
|
void *grad_array, ULONG ngrad, ULONG mode );
|
2022-06-10 13:01:31 +00:00
|
|
|
HFONT WINAPI NtGdiHfontCreate( const void *logfont, ULONG unk2, ULONG unk3,
|
2021-09-20 11:12:53 +00:00
|
|
|
ULONG unk4, void *data );
|
|
|
|
DWORD WINAPI NtGdiInitSpool(void);
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiIntersectClipRect( HDC hdc, INT left, INT top, INT right, INT bottom );
|
|
|
|
BOOL WINAPI NtGdiInvertRgn( HDC hdc, HRGN hrgn );
|
|
|
|
BOOL WINAPI NtGdiLineTo( HDC hdc, INT x, INT y );
|
2021-09-09 12:00:56 +00:00
|
|
|
BOOL WINAPI NtGdiMaskBlt( HDC hdc, INT x_dst, INT y_dst, INT width_dst, INT height_dst,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, HBITMAP mask,
|
|
|
|
INT x_mask, INT y_mask, DWORD rop, DWORD bk_color );
|
2021-08-13 10:07:48 +00:00
|
|
|
BOOL WINAPI NtGdiModifyWorldTransform( HDC hdc, const XFORM *xform, DWORD mode );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiMoveTo( HDC hdc, INT x, INT y, POINT *pt );
|
|
|
|
INT WINAPI NtGdiOffsetClipRgn( HDC hdc, INT x, INT y );
|
|
|
|
INT WINAPI NtGdiOffsetRgn( HRGN hrgn, INT x, INT y );
|
2021-09-20 11:12:53 +00:00
|
|
|
HDC WINAPI NtGdiOpenDCW( UNICODE_STRING *device, const DEVMODEW *devmode,
|
|
|
|
UNICODE_STRING *output, ULONG type, BOOL is_display,
|
|
|
|
HANDLE hspool, DRIVER_INFO_2W *driver_info, void *pdev );
|
2021-08-03 10:56:49 +00:00
|
|
|
BOOL WINAPI NtGdiPatBlt( HDC hdc, INT left, INT top, INT width, INT height, DWORD rop );
|
2021-06-30 15:37:41 +00:00
|
|
|
HRGN WINAPI NtGdiPathToRegion( HDC hdc );
|
2021-09-09 12:01:02 +00:00
|
|
|
BOOL WINAPI NtGdiPlgBlt( HDC hdc, const POINT *point, HDC hdc_src, INT x_src, INT y_src,
|
|
|
|
INT width, INT height, HBITMAP mask, INT x_mask, INT y_mask,
|
|
|
|
DWORD bk_color );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiPolyDraw(HDC hdc, const POINT *points, const BYTE *types, DWORD count );
|
2022-02-01 13:04:57 +00:00
|
|
|
ULONG WINAPI NtGdiPolyPolyDraw( HDC hdc, const POINT *points, const ULONG *counts,
|
2021-06-30 15:37:41 +00:00
|
|
|
DWORD count, UINT function );
|
|
|
|
BOOL WINAPI NtGdiPtInRegion( HRGN hrgn, INT x, INT y );
|
|
|
|
BOOL WINAPI NtGdiPtVisible( HDC hdc, INT x, INT y );
|
|
|
|
BOOL WINAPI NtGdiRectInRegion( HRGN hrgn, const RECT *rect );
|
|
|
|
BOOL WINAPI NtGdiRectVisible( HDC hdc, const RECT *rect );
|
|
|
|
BOOL WINAPI NtGdiRectangle( HDC hdc, INT left, INT top, INT right, INT bottom );
|
2021-09-01 12:08:41 +00:00
|
|
|
BOOL WINAPI NtGdiRemoveFontMemResourceEx( HANDLE handle );
|
2021-09-01 12:08:52 +00:00
|
|
|
BOOL WINAPI NtGdiRemoveFontResourceW( const WCHAR *str, ULONG size, ULONG files,
|
|
|
|
DWORD flags, DWORD tid, void *dv );
|
2021-08-23 11:50:47 +00:00
|
|
|
BOOL WINAPI NtGdiResetDC( HDC hdc, const DEVMODEW *devmode, BOOL *banding,
|
|
|
|
DRIVER_INFO_2W *driver_info, void *dev );
|
2021-08-16 08:27:16 +00:00
|
|
|
BOOL WINAPI NtGdiResizePalette( HPALETTE palette, UINT count );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiRestoreDC( HDC hdc, INT level );
|
|
|
|
BOOL WINAPI NtGdiRoundRect( HDC hdc, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT ell_width, INT ell_height );
|
|
|
|
INT WINAPI NtGdiSaveDC( HDC hdc );
|
|
|
|
BOOL WINAPI NtGdiScaleViewportExtEx( HDC hdc, INT x_num, INT x_denom,
|
|
|
|
INT y_num, INT y_denom, SIZE *size );
|
|
|
|
BOOL WINAPI NtGdiScaleWindowExtEx( HDC hdc, INT x_num, INT x_denom,
|
|
|
|
INT y_num, INT y_denom, SIZE *size );
|
|
|
|
HGDIOBJ WINAPI NtGdiSelectBitmap( HDC hdc, HGDIOBJ handle );
|
|
|
|
HGDIOBJ WINAPI NtGdiSelectBrush( HDC hdc, HGDIOBJ handle );
|
|
|
|
BOOL WINAPI NtGdiSelectClipPath( HDC hdc, INT mode );
|
|
|
|
HGDIOBJ WINAPI NtGdiSelectFont( HDC hdc, HGDIOBJ handle );
|
|
|
|
HGDIOBJ WINAPI NtGdiSelectPen( HDC hdc, HGDIOBJ handle );
|
|
|
|
LONG WINAPI NtGdiSetBitmapBits( HBITMAP hbitmap, LONG count, const void *bits );
|
|
|
|
BOOL WINAPI NtGdiSetBitmapDimension( HBITMAP hbitmap, INT x, INT y, SIZE *prev_size );
|
|
|
|
BOOL WINAPI NtGdiSetBrushOrg( HDC hdc, INT x, INT y, POINT *prev_org );
|
|
|
|
UINT WINAPI NtGdiSetBoundsRect( HDC hdc, const RECT *rect, UINT flags );
|
2021-08-30 11:57:05 +00:00
|
|
|
BOOL WINAPI NtGdiSetColorAdjustment( HDC hdc, const COLORADJUSTMENT *ca );
|
2021-08-13 10:09:03 +00:00
|
|
|
INT WINAPI NtGdiSetDIBitsToDeviceInternal( HDC hdc, INT x_dst, INT y_dst, DWORD cx,
|
|
|
|
DWORD cy, INT x_src, INT y_src, UINT startscan,
|
|
|
|
UINT lines, const void *bits, const BITMAPINFO *bmi,
|
|
|
|
UINT coloruse, UINT max_bits, UINT max_info,
|
|
|
|
BOOL xform_coords, HANDLE xform );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiSetDeviceGammaRamp( HDC hdc, void *ptr );
|
2021-08-05 09:26:55 +00:00
|
|
|
DWORD WINAPI NtGdiSetLayout( HDC hdc, LONG wox, DWORD layout );
|
2021-08-16 08:27:16 +00:00
|
|
|
BOOL WINAPI NtGdiSetMagicColors( HDC hdc, DWORD magic, ULONG index );
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiSetMetaRgn( HDC hdc );
|
|
|
|
BOOL WINAPI NtGdiSetMiterLimit( HDC hdc, FLOAT limit, FLOAT *prev_limit );
|
|
|
|
COLORREF WINAPI NtGdiSetPixel( HDC hdc, INT x, INT y, COLORREF color );
|
2021-07-25 08:55:31 +00:00
|
|
|
BOOL WINAPI NtGdiSetPixelFormat( HDC hdc, INT format );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiSetRectRgn( HRGN hrgn, INT left, INT top, INT right, INT bottom );
|
2021-08-16 08:27:16 +00:00
|
|
|
UINT WINAPI NtGdiSetSystemPaletteUse( HDC hdc, UINT use );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiSetTextJustification( HDC hdc, INT extra, INT breaks );
|
|
|
|
BOOL WINAPI NtGdiSetVirtualResolution( HDC hdc, DWORD horz_res, DWORD vert_res,
|
|
|
|
DWORD horz_size, DWORD vert_size );
|
2021-09-02 12:14:38 +00:00
|
|
|
INT WINAPI NtGdiStartDoc( HDC hdc, const DOCINFOW *doc, BOOL *banding, INT job );
|
2021-06-30 15:37:41 +00:00
|
|
|
INT WINAPI NtGdiStartPage( HDC hdc );
|
2021-08-12 10:00:13 +00:00
|
|
|
BOOL WINAPI NtGdiStretchBlt( HDC hdc, INT x_dst, INT y_dst, INT width_dst, INT height_dst,
|
|
|
|
HDC hdc_src, INT x_src, INT y_src, INT width_src, INT height_src,
|
|
|
|
DWORD rop, COLORREF bk_color );
|
2021-08-13 10:09:16 +00:00
|
|
|
INT WINAPI NtGdiStretchDIBitsInternal( HDC hdc, INT x_dst, INT y_dst, INT width_dst,
|
|
|
|
INT height_dst, INT x_src, INT y_src, INT width_src,
|
|
|
|
INT height_src, const void *bits, const BITMAPINFO *bmi,
|
|
|
|
UINT coloruse, DWORD rop, UINT max_info, UINT max_bits,
|
|
|
|
HANDLE xform );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiStrokeAndFillPath( HDC hdc );
|
2021-09-20 11:12:53 +00:00
|
|
|
BOOL WINAPI NtGdiStrokePath( HDC hdc );
|
2021-09-10 12:28:04 +00:00
|
|
|
BOOL WINAPI NtGdiSwapBuffers( HDC hdc );
|
2021-09-10 12:27:39 +00:00
|
|
|
BOOL WINAPI NtGdiTransparentBlt( HDC hdc, int x_dst, int y_dst, int width_dst, int height_dst,
|
|
|
|
HDC hdc_src, int x_src, int y_src, int width_src, int height_src,
|
|
|
|
UINT color );
|
2021-08-05 09:25:32 +00:00
|
|
|
BOOL WINAPI NtGdiTransformPoints( HDC hdc, const POINT *points_in, POINT *points_out,
|
|
|
|
INT count, UINT mode );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiUnrealizeObject( HGDIOBJ obj );
|
2021-08-16 08:27:16 +00:00
|
|
|
BOOL WINAPI NtGdiUpdateColors( HDC hdc );
|
2021-06-30 15:37:41 +00:00
|
|
|
BOOL WINAPI NtGdiWidenPath( HDC hdc );
|
|
|
|
|
2021-08-25 12:39:45 +00:00
|
|
|
NTSTATUS WINAPI NtGdiDdDDICheckVidPnExclusiveOwnership( const D3DKMT_CHECKVIDPNEXCLUSIVEOWNERSHIP *desc );
|
|
|
|
NTSTATUS WINAPI NtGdiDdDDICloseAdapter( const D3DKMT_CLOSEADAPTER *desc );
|
|
|
|
NTSTATUS WINAPI NtGdiDdDDICreateDCFromMemory( D3DKMT_CREATEDCFROMMEMORY *desc );
|
|
|
|
NTSTATUS WINAPI NtGdiDdDDICreateDevice( D3DKMT_CREATEDEVICE *desc );
|
|
|
|
NTSTATUS WINAPI NtGdiDdDDIDestroyDCFromMemory( const D3DKMT_DESTROYDCFROMMEMORY *desc );
|
|
|
|
NTSTATUS WINAPI NtGdiDdDDIDestroyDevice( const D3DKMT_DESTROYDEVICE *desc );
|
2021-09-20 11:12:53 +00:00
|
|
|
NTSTATUS WINAPI NtGdiDdDDIEscape( const D3DKMT_ESCAPE *desc );
|
|
|
|
NTSTATUS WINAPI NtGdiDdDDIOpenAdapterFromHdc( D3DKMT_OPENADAPTERFROMHDC *desc );
|
2021-09-21 15:05:13 +00:00
|
|
|
NTSTATUS WINAPI NtGdiDdDDIOpenAdapterFromDeviceName( D3DKMT_OPENADAPTERFROMDEVICENAME *desc );
|
2021-08-25 12:39:46 +00:00
|
|
|
NTSTATUS WINAPI NtGdiDdDDIOpenAdapterFromLuid( D3DKMT_OPENADAPTERFROMLUID *desc );
|
2021-08-25 12:39:45 +00:00
|
|
|
NTSTATUS WINAPI NtGdiDdDDIQueryStatistics( D3DKMT_QUERYSTATISTICS *stats );
|
2022-05-17 06:18:12 +00:00
|
|
|
NTSTATUS WINAPI NtGdiDdDDIQueryVideoMemoryInfo( D3DKMT_QUERYVIDEOMEMORYINFO *desc );
|
2021-08-25 12:39:45 +00:00
|
|
|
NTSTATUS WINAPI NtGdiDdDDISetQueuedLimit( D3DKMT_SETQUEUEDLIMIT *desc );
|
|
|
|
NTSTATUS WINAPI NtGdiDdDDISetVidPnSourceOwner( const D3DKMT_SETVIDPNSOURCEOWNER *desc );
|
|
|
|
|
2021-10-06 14:20:26 +00:00
|
|
|
/* Wine extensions */
|
|
|
|
extern BOOL CDECL __wine_get_brush_bitmap_info( HBRUSH handle, BITMAPINFO *info, void *bits,
|
|
|
|
UINT *usage );
|
|
|
|
extern BOOL CDECL __wine_get_icm_profile( HDC hdc, BOOL allow_default, DWORD *size,
|
|
|
|
WCHAR *filename );
|
|
|
|
extern BOOL CDECL __wine_get_file_outline_text_metric( const WCHAR *path,
|
|
|
|
OUTLINETEXTMETRICW *otm );
|
|
|
|
|
2021-06-30 15:37:41 +00:00
|
|
|
#endif /* _NTGDI_ */
|