2 * Copyright 2021 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 #include <ddk/d3dkmthk.h>
28 # if defined(_WIN32U_) || defined(WINE_UNIX_LIB)
29 # define W32KAPI DECLSPEC_EXPORT
31 # define W32KAPI DECLSPEC_IMPORT
35 typedef struct _GDI_HANDLE_ENTRY
61 } GDI_HANDLE_ENTRY
, *PGDI_HANDLE_ENTRY
;
63 #define GDI_MAX_HANDLE_COUNT 0x10000
65 #define NTGDI_OBJ_DC 0x010000
66 #define NTGDI_OBJ_ENHMETADC 0x210000
67 #define NTGDI_OBJ_REGION 0x040000
68 #define NTGDI_OBJ_SURF 0x050000
69 #define NTGDI_OBJ_METAFILE 0x260000
70 #define NTGDI_OBJ_ENHMETAFILE 0x460000
71 #define NTGDI_OBJ_METADC 0x660000
72 #define NTGDI_OBJ_PAL 0x080000
73 #define NTGDI_OBJ_BITMAP 0x090000
74 #define NTGDI_OBJ_FONT 0x0a0000
75 #define NTGDI_OBJ_BRUSH 0x100000
76 #define NTGDI_OBJ_PEN 0x300000
77 #define NTGDI_OBJ_EXTPEN 0x500000
79 /* Wine extension, native uses NTGDI_OBJ_DC */
80 #define NTGDI_OBJ_MEMDC 0x410000
82 #define NTGDI_HANDLE_TYPE_SHIFT 16
83 #define NTGDI_HANDLE_TYPE_MASK 0x007f0000
84 #define NTGDI_HANDLE_STOCK_OBJECT 0x00800000
86 typedef struct _GDI_SHARED_MEMORY
88 GDI_HANDLE_ENTRY Handles
[GDI_MAX_HANDLE_COUNT
];
89 } GDI_SHARED_MEMORY
, *PGDI_SHARED_MEMORY
;
101 NtGdiPolyPolygon
= 1,
118 /* not compatible with Windows */
119 NtGdiSetBkColor
= 100,
122 NtGdiSetDCBrushColor
,
124 NtGdiSetGraphicsMode
,
129 /* NtGdiGetDCDword parameter, not compatible with Windows */
132 NtGdiGetArcDirection
,
135 NtGdiGetDCBrushColor
,
137 NtGdiGetGraphicsMode
,
139 NtGdiGetPolyFillMode
,
145 /* NtGdiGetDCPoint parameter, not compatible with Windows */
149 NtGdiGetCurrentPosition
,
156 NtGdiSetPaletteEntries
,
157 NtGdiGetPaletteEntries
,
158 NtGdiGetSystemPaletteEntries
,
159 NtGdiGetDIBColorTable
,
160 NtGdiSetDIBColorTable
,
163 #define NTGDI_GETCHARWIDTH_INT 0x02
164 #define NTGDI_GETCHARWIDTH_INDICES 0x08
166 #define NTGDI_GETCHARABCWIDTHS_INT 0x01
167 #define NTGDI_GETCHARABCWIDTHS_INDICES 0x02
171 /* structs not compatible with native Windows */
174 typedef struct DC_ATTR
176 UINT hdc
; /* handle to self */
177 LONG disabled
; /* disabled flag, controlled by DCHF_(DISABLE|ENABLE)DC */
179 COLORREF background_color
;
180 COLORREF brush_color
;
188 WORD background_mode
;
192 WORD stretch_blt_mode
;
195 DWORD mapper_flags
; /* font mapper flags */
196 RECT vis_rect
; /* visible rectangle in screen coords */
198 POINT brush_org
; /* brush origin */
199 POINT wnd_org
; /* window origin */
200 SIZE wnd_ext
; /* window extent */
201 POINT vport_org
; /* viewport origin */
202 SIZE vport_ext
; /* viewport extent */
207 UINT64 emf
; /* client EMF record pointer */
208 UINT64 abort_proc
; /* AbortProc for printing */
209 UINT64 print
; /* client printer info pointer */
212 struct font_enum_entry
219 /* flag for NtGdiGetRandomRgn to respect LAYOUT_RTL */
220 #define NTGDI_RGN_MIRROR_RTL 0x80000000
222 #endif /* __WINESRC__ */
224 struct font_realization_info
226 DWORD size
; /* could be 16 or 24 */
227 DWORD flags
; /* 1 for bitmap fonts, 3 for scalable fonts */
228 DWORD cache_num
; /* keeps incrementing */
229 DWORD instance_id
; /* identifies a realized font instance */
230 DWORD file_count
; /* number of files that make up this font */
231 WORD face_index
; /* face index in case of font collections */
232 WORD simulations
; /* 0 bit - bold simulation, 1 bit - oblique simulation */
235 struct char_width_info
237 INT lsb
; /* minimum left side bearing */
238 INT rsb
; /* minimum right side bearing */
239 INT unk
; /* unknown */
250 W32KAPI INT WINAPI
NtGdiAbortDoc( HDC hdc
);
251 W32KAPI BOOL WINAPI
NtGdiAbortPath( HDC hdc
);
252 W32KAPI HANDLE WINAPI
NtGdiAddFontMemResourceEx( void *ptr
, DWORD size
, void *dv
, ULONG dv_size
,
254 W32KAPI INT WINAPI
NtGdiAddFontResourceW( const WCHAR
*str
, ULONG size
, ULONG files
, DWORD flags
,
255 DWORD tid
, void *dv
);
256 W32KAPI BOOL WINAPI
NtGdiAlphaBlend( HDC hdc_dst
, int x_dst
, int y_dst
, int width_dst
, int height_dst
,
257 HDC hdc_src
, int x_src
, int y_src
, int width_src
, int height_src
,
258 DWORD blend_function
, HANDLE xform
);
259 W32KAPI BOOL WINAPI
NtGdiAngleArc( HDC hdc
, INT x
, INT y
, DWORD radius
, DWORD start_angle
,
261 W32KAPI BOOL WINAPI
NtGdiArcInternal( UINT type
, HDC hdc
, INT left
, INT top
, INT right
, INT bottom
,
262 INT xstart
, INT ystart
, INT xend
, INT yend
);
263 W32KAPI BOOL WINAPI
NtGdiBeginPath( HDC hdc
);
264 W32KAPI BOOL WINAPI
NtGdiBitBlt( HDC hdc_dst
, INT x_dst
, INT y_dst
, INT width
, INT height
, HDC hdc_src
,
265 INT x_src
, INT y_src
, DWORD rop
, DWORD bk_color
, FLONG fl
);
266 W32KAPI BOOL WINAPI
NtGdiCancelDC( HDC hdc
);
267 W32KAPI BOOL WINAPI
NtGdiCloseFigure( HDC hdc
);
268 W32KAPI INT WINAPI
NtGdiCombineRgn( HRGN dest
, HRGN src1
, HRGN src2
, INT mode
);
269 W32KAPI BOOL WINAPI
NtGdiComputeXformCoefficients( HDC hdc
);
270 W32KAPI HBITMAP WINAPI
NtGdiCreateBitmap( INT width
, INT height
, UINT planes
,
271 UINT bpp
, const void *bits
);
272 W32KAPI HANDLE WINAPI
NtGdiCreateClientObj( ULONG type
);
273 W32KAPI HBITMAP WINAPI
NtGdiCreateCompatibleBitmap( HDC hdc
, INT width
, INT height
);
274 W32KAPI HDC WINAPI
NtGdiCreateCompatibleDC( HDC hdc
);
275 W32KAPI HBRUSH WINAPI
NtGdiCreateDIBBrush( const void *data
, UINT coloruse
, UINT size
,
276 BOOL is_8x8
, BOOL pen
, const void *client
);
277 W32KAPI HBITMAP WINAPI
NtGdiCreateDIBSection( HDC hdc
, HANDLE section
, DWORD offset
, const BITMAPINFO
*bmi
,
278 UINT usage
, UINT header_size
, ULONG flags
,
279 ULONG_PTR color_space
, void **bits
);
280 W32KAPI HBITMAP WINAPI
NtGdiCreateDIBitmapInternal( HDC hdc
, INT width
, INT height
, DWORD init
,
281 const void *bits
, const BITMAPINFO
*data
,
282 UINT coloruse
, UINT max_info
, UINT max_bits
,
283 ULONG flags
, HANDLE xform
);
284 W32KAPI HRGN WINAPI
NtGdiCreateEllipticRgn( INT left
, INT top
, INT right
, INT bottom
);
285 W32KAPI HPALETTE WINAPI
NtGdiCreateHalftonePalette( HDC hdc
);
286 W32KAPI HBRUSH WINAPI
NtGdiCreateHatchBrushInternal( INT style
, COLORREF color
, BOOL pen
);
287 W32KAPI HDC WINAPI
NtGdiCreateMetafileDC( HDC hdc
);
288 W32KAPI HPALETTE WINAPI
NtGdiCreatePaletteInternal( const LOGPALETTE
*palette
, UINT count
);
289 W32KAPI HBRUSH WINAPI
NtGdiCreatePatternBrushInternal( HBITMAP hbitmap
, BOOL pen
, BOOL is_8x8
);
290 W32KAPI HPEN WINAPI
NtGdiCreatePen( INT style
, INT width
, COLORREF color
, HBRUSH brush
);
291 W32KAPI HRGN WINAPI
NtGdiCreateRectRgn( INT left
, INT top
, INT right
, INT bottom
);
292 W32KAPI HRGN WINAPI
NtGdiCreateRoundRectRgn( INT left
, INT top
, INT right
, INT bottom
,
293 INT ellipse_width
, INT ellipse_height
);
294 W32KAPI HBRUSH WINAPI
NtGdiCreateSolidBrush( COLORREF color
, HBRUSH brush
);
295 W32KAPI BOOL WINAPI
NtGdiDeleteClientObj( HGDIOBJ obj
);
296 W32KAPI BOOL WINAPI
NtGdiDeleteObjectApp( HGDIOBJ obj
);
297 W32KAPI INT WINAPI
NtGdiDescribePixelFormat( HDC hdc
, INT format
, UINT size
,
298 PIXELFORMATDESCRIPTOR
*descr
);
299 W32KAPI LONG WINAPI
NtGdiDoPalette( HGDIOBJ handle
, WORD start
, WORD count
, void *entries
,
300 DWORD func
, BOOL inbound
);
301 W32KAPI BOOL WINAPI
NtGdiDrawStream( HDC hdc
, ULONG in
, void *pvin
);
302 W32KAPI BOOL WINAPI
NtGdiEllipse( HDC hdc
, INT left
, INT top
, INT right
, INT bottom
);
303 W32KAPI INT WINAPI
NtGdiEndDoc( HDC hdc
);
304 W32KAPI BOOL WINAPI
NtGdiEndPath( HDC hdc
);
305 W32KAPI INT WINAPI
NtGdiEndPage( HDC hdc
);
306 W32KAPI BOOL WINAPI
NtGdiEnumFonts( HDC hdc
, ULONG type
, ULONG win32_compat
, ULONG face_name_len
,
307 const WCHAR
*face_name
, ULONG charset
, ULONG
*count
, void *buf
);
308 W32KAPI BOOL WINAPI
NtGdiEqualRgn( HRGN hrgn1
, HRGN hrgn2
);
309 W32KAPI INT WINAPI
NtGdiExcludeClipRect( HDC hdc
, INT left
, INT top
, INT right
, INT bottom
);
310 W32KAPI HPEN WINAPI
NtGdiExtCreatePen( DWORD style
, DWORD width
, ULONG brush_style
, ULONG color
,
311 ULONG_PTR client_hatch
, ULONG_PTR hatch
, DWORD style_count
,
312 const DWORD
*style_bits
, ULONG dib_size
, BOOL old_style
,
314 W32KAPI INT WINAPI
NtGdiExtEscape( HDC hdc
, WCHAR
*driver
, INT driver_id
, INT escape
, INT input_size
,
315 const char *input
, INT output_size
, char *output
);
316 W32KAPI BOOL WINAPI
NtGdiExtFloodFill( HDC hdc
, INT x
, INT y
, COLORREF color
, UINT type
);
317 W32KAPI BOOL WINAPI
NtGdiExtTextOutW( HDC hdc
, INT x
, INT y
, UINT flags
, const RECT
*rect
,
318 const WCHAR
*str
, UINT count
, const INT
*dx
, DWORD cp
);
319 W32KAPI HRGN WINAPI
NtGdiExtCreateRegion( const XFORM
*xform
, DWORD count
, const RGNDATA
*data
);
320 W32KAPI INT WINAPI
NtGdiExtGetObjectW( HGDIOBJ handle
, INT count
, void *buffer
);
321 W32KAPI INT WINAPI
NtGdiExtSelectClipRgn( HDC hdc
, HRGN region
, INT mode
);
322 W32KAPI BOOL WINAPI
NtGdiFillPath( HDC hdc
);
323 W32KAPI BOOL WINAPI
NtGdiFillRgn( HDC hdc
, HRGN hrgn
, HBRUSH hbrush
);
324 W32KAPI BOOL WINAPI
NtGdiFlattenPath( HDC hdc
);
325 W32KAPI BOOL WINAPI
NtGdiFontIsLinked( HDC hdc
);
326 W32KAPI BOOL WINAPI
NtGdiFlush(void);
327 W32KAPI BOOL WINAPI
NtGdiFrameRgn( HDC hdc
, HRGN hrgn
, HBRUSH brush
, INT width
, INT height
);
328 W32KAPI BOOL WINAPI
NtGdiGetAndSetDCDword( HDC hdc
, UINT method
, DWORD value
, DWORD
*result
);
329 W32KAPI INT WINAPI
NtGdiGetAppClipBox( HDC hdc
, RECT
*rect
);
330 W32KAPI LONG WINAPI
NtGdiGetBitmapBits( HBITMAP bitmap
, LONG count
, void *bits
);
331 W32KAPI BOOL WINAPI
NtGdiGetBitmapDimension( HBITMAP bitmap
, SIZE
*size
);
332 W32KAPI UINT WINAPI
NtGdiGetBoundsRect( HDC hdc
, RECT
*rect
, UINT flags
);
333 W32KAPI BOOL WINAPI
NtGdiGetCharABCWidthsW( HDC hdc
, UINT first
, UINT last
, WCHAR
*chars
,
334 ULONG flags
, void *buffer
);
335 W32KAPI BOOL WINAPI
NtGdiGetCharWidthW( HDC hdc
, UINT first_char
, UINT last_char
, WCHAR
*chars
,
336 ULONG flags
, void *buffer
);
337 W32KAPI BOOL WINAPI
NtGdiGetCharWidthInfo( HDC hdc
, struct char_width_info
*info
);
338 W32KAPI BOOL WINAPI
NtGdiGetColorAdjustment( HDC hdc
, COLORADJUSTMENT
*ca
);
339 W32KAPI BOOL WINAPI
NtGdiGetDCDword( HDC hdc
, UINT method
, DWORD
*result
);
340 W32KAPI HANDLE WINAPI
NtGdiGetDCObject( HDC hdc
, UINT type
);
341 W32KAPI BOOL WINAPI
NtGdiGetDCPoint( HDC hdc
, UINT method
, POINT
*result
);
342 W32KAPI INT WINAPI
NtGdiGetDIBitsInternal( HDC hdc
, HBITMAP hbitmap
, UINT startscan
, UINT lines
,
343 void *bits
, BITMAPINFO
*info
, UINT coloruse
,
344 UINT max_bits
, UINT max_info
);
345 W32KAPI INT WINAPI
NtGdiGetDeviceCaps( HDC hdc
, INT cap
);
346 W32KAPI BOOL WINAPI
NtGdiGetDeviceGammaRamp( HDC hdc
, void *ptr
);
347 W32KAPI DWORD WINAPI
NtGdiGetFontData( HDC hdc
, DWORD table
, DWORD offset
, void *buffer
, DWORD length
);
348 W32KAPI BOOL WINAPI
NtGdiGetFontFileData( DWORD instance_id
, DWORD file_index
, UINT64
*offset
,
349 void *buff
, SIZE_T buff_size
);
350 W32KAPI BOOL WINAPI
NtGdiGetFontFileInfo( DWORD instance_id
, DWORD file_index
, struct font_fileinfo
*info
,
351 SIZE_T size
, SIZE_T
*needed
);
352 W32KAPI DWORD WINAPI
NtGdiGetFontUnicodeRanges( HDC hdc
, GLYPHSET
*lpgs
);
353 W32KAPI DWORD WINAPI
NtGdiGetGlyphIndicesW( HDC hdc
, const WCHAR
*str
, INT count
,
354 WORD
*indices
, DWORD flags
);
355 W32KAPI DWORD WINAPI
NtGdiGetGlyphOutline( HDC hdc
, UINT ch
, UINT format
, GLYPHMETRICS
*metrics
,
356 DWORD size
, void *buffer
, const MAT2
*mat2
,
357 BOOL ignore_rotation
);
358 W32KAPI DWORD WINAPI
NtGdiGetKerningPairs( HDC hdc
, DWORD count
, KERNINGPAIR
*kern_pair
);
359 W32KAPI BOOL WINAPI
NtGdiGetMiterLimit( HDC hdc
, DWORD
*limit
);
360 W32KAPI COLORREF WINAPI
NtGdiGetNearestColor( HDC hdc
, COLORREF color
);
361 W32KAPI UINT WINAPI
NtGdiGetNearestPaletteIndex( HPALETTE hpalette
, COLORREF color
);
362 W32KAPI UINT WINAPI
NtGdiGetOutlineTextMetricsInternalW( HDC hdc
, UINT cbData
,
363 OUTLINETEXTMETRICW
*otm
, ULONG opts
);
364 W32KAPI INT WINAPI
NtGdiGetPath( HDC hdc
, POINT
*points
, BYTE
*types
, INT size
);
365 W32KAPI COLORREF WINAPI
NtGdiGetPixel( HDC hdc
, INT x
, INT y
);
366 W32KAPI INT WINAPI
NtGdiGetRandomRgn( HDC hdc
, HRGN region
, INT code
);
367 W32KAPI BOOL WINAPI
NtGdiGetRasterizerCaps( RASTERIZER_STATUS
*status
, UINT size
);
368 W32KAPI BOOL WINAPI
NtGdiGetRealizationInfo( HDC hdc
, struct font_realization_info
*info
);
369 W32KAPI DWORD WINAPI
NtGdiGetRegionData( HRGN hrgn
, DWORD count
, RGNDATA
*data
);
370 W32KAPI INT WINAPI
NtGdiGetRgnBox( HRGN hrgn
, RECT
*rect
);
371 W32KAPI DWORD WINAPI
NtGdiGetSpoolMessage( void *ptr1
, DWORD data2
, void *ptr3
, DWORD data4
);
372 W32KAPI UINT WINAPI
NtGdiGetSystemPaletteUse( HDC hdc
);
373 W32KAPI UINT WINAPI
NtGdiGetTextCharsetInfo( HDC hdc
, FONTSIGNATURE
*fs
, DWORD flags
);
374 W32KAPI BOOL WINAPI
NtGdiGetTextExtentExW( HDC hdc
, const WCHAR
*str
, INT count
, INT max_ext
,
375 INT
*nfit
, INT
*dxs
, SIZE
*size
, UINT flags
);
376 W32KAPI INT WINAPI
NtGdiGetTextFaceW( HDC hdc
, INT count
, WCHAR
*name
, BOOL alias_name
);
377 W32KAPI BOOL WINAPI
NtGdiGetTextMetricsW( HDC hdc
, TEXTMETRICW
*metrics
, ULONG flags
);
378 W32KAPI BOOL WINAPI
NtGdiGetTransform( HDC hdc
, DWORD which
, XFORM
*xform
);
379 W32KAPI BOOL WINAPI
NtGdiGradientFill( HDC hdc
, TRIVERTEX
*vert_array
, ULONG nvert
,
380 void *grad_array
, ULONG ngrad
, ULONG mode
);
381 W32KAPI HFONT WINAPI
NtGdiHfontCreate( const void *logfont
, ULONG unk2
, ULONG unk3
,
382 ULONG unk4
, void *data
);
383 W32KAPI BOOL WINAPI
NtGdiIcmBrushInfo( HDC hdc
, HBRUSH handle
, BITMAPINFO
*info
, void *bits
,
384 ULONG
*bits_size
, UINT
*usage
, BOOL
*unk
, UINT mode
);
385 W32KAPI DWORD WINAPI
NtGdiInitSpool(void);
386 W32KAPI INT WINAPI
NtGdiIntersectClipRect( HDC hdc
, INT left
, INT top
, INT right
, INT bottom
);
387 W32KAPI BOOL WINAPI
NtGdiInvertRgn( HDC hdc
, HRGN hrgn
);
388 W32KAPI BOOL WINAPI
NtGdiLineTo( HDC hdc
, INT x
, INT y
);
389 W32KAPI BOOL WINAPI
NtGdiMaskBlt( HDC hdc
, INT x_dst
, INT y_dst
, INT width_dst
, INT height_dst
,
390 HDC hdc_src
, INT x_src
, INT y_src
, HBITMAP mask
,
391 INT x_mask
, INT y_mask
, DWORD rop
, DWORD bk_color
);
392 W32KAPI BOOL WINAPI
NtGdiModifyWorldTransform( HDC hdc
, const XFORM
*xform
, DWORD mode
);
393 W32KAPI BOOL WINAPI
NtGdiMoveTo( HDC hdc
, INT x
, INT y
, POINT
*pt
);
394 W32KAPI INT WINAPI
NtGdiOffsetClipRgn( HDC hdc
, INT x
, INT y
);
395 W32KAPI INT WINAPI
NtGdiOffsetRgn( HRGN hrgn
, INT x
, INT y
);
396 W32KAPI HDC WINAPI
NtGdiOpenDCW( UNICODE_STRING
*device
, const DEVMODEW
*devmode
,
397 UNICODE_STRING
*output
, ULONG type
, BOOL is_display
,
398 HANDLE hspool
, DRIVER_INFO_2W
*driver_info
, void *pdev
);
399 W32KAPI BOOL WINAPI
NtGdiPatBlt( HDC hdc
, INT left
, INT top
, INT width
, INT height
, DWORD rop
);
400 W32KAPI HRGN WINAPI
NtGdiPathToRegion( HDC hdc
);
401 W32KAPI BOOL WINAPI
NtGdiPlgBlt( HDC hdc
, const POINT
*point
, HDC hdc_src
, INT x_src
, INT y_src
,
402 INT width
, INT height
, HBITMAP mask
, INT x_mask
, INT y_mask
,
404 W32KAPI BOOL WINAPI
NtGdiPolyDraw(HDC hdc
, const POINT
*points
, const BYTE
*types
, DWORD count
);
405 W32KAPI ULONG WINAPI
NtGdiPolyPolyDraw( HDC hdc
, const POINT
*points
, const ULONG
*counts
,
406 DWORD count
, UINT function
);
407 W32KAPI BOOL WINAPI
NtGdiPtInRegion( HRGN hrgn
, INT x
, INT y
);
408 W32KAPI BOOL WINAPI
NtGdiPtVisible( HDC hdc
, INT x
, INT y
);
409 W32KAPI BOOL WINAPI
NtGdiRectInRegion( HRGN hrgn
, const RECT
*rect
);
410 W32KAPI BOOL WINAPI
NtGdiRectVisible( HDC hdc
, const RECT
*rect
);
411 W32KAPI BOOL WINAPI
NtGdiRectangle( HDC hdc
, INT left
, INT top
, INT right
, INT bottom
);
412 W32KAPI BOOL WINAPI
NtGdiRemoveFontMemResourceEx( HANDLE handle
);
413 W32KAPI BOOL WINAPI
NtGdiRemoveFontResourceW( const WCHAR
*str
, ULONG size
, ULONG files
,
414 DWORD flags
, DWORD tid
, void *dv
);
415 W32KAPI BOOL WINAPI
NtGdiResetDC( HDC hdc
, const DEVMODEW
*devmode
, BOOL
*banding
,
416 DRIVER_INFO_2W
*driver_info
, void *dev
);
417 W32KAPI BOOL WINAPI
NtGdiResizePalette( HPALETTE palette
, UINT count
);
418 W32KAPI BOOL WINAPI
NtGdiRestoreDC( HDC hdc
, INT level
);
419 W32KAPI BOOL WINAPI
NtGdiRoundRect( HDC hdc
, INT left
, INT top
, INT right
,
420 INT bottom
, INT ell_width
, INT ell_height
);
421 W32KAPI INT WINAPI
NtGdiSaveDC( HDC hdc
);
422 W32KAPI BOOL WINAPI
NtGdiScaleViewportExtEx( HDC hdc
, INT x_num
, INT x_denom
,
423 INT y_num
, INT y_denom
, SIZE
*size
);
424 W32KAPI BOOL WINAPI
NtGdiScaleWindowExtEx( HDC hdc
, INT x_num
, INT x_denom
,
425 INT y_num
, INT y_denom
, SIZE
*size
);
426 W32KAPI HGDIOBJ WINAPI
NtGdiSelectBitmap( HDC hdc
, HGDIOBJ handle
);
427 W32KAPI HGDIOBJ WINAPI
NtGdiSelectBrush( HDC hdc
, HGDIOBJ handle
);
428 W32KAPI BOOL WINAPI
NtGdiSelectClipPath( HDC hdc
, INT mode
);
429 W32KAPI HGDIOBJ WINAPI
NtGdiSelectFont( HDC hdc
, HGDIOBJ handle
);
430 W32KAPI HGDIOBJ WINAPI
NtGdiSelectPen( HDC hdc
, HGDIOBJ handle
);
431 W32KAPI LONG WINAPI
NtGdiSetBitmapBits( HBITMAP hbitmap
, LONG count
, const void *bits
);
432 W32KAPI BOOL WINAPI
NtGdiSetBitmapDimension( HBITMAP hbitmap
, INT x
, INT y
, SIZE
*prev_size
);
433 W32KAPI BOOL WINAPI
NtGdiSetBrushOrg( HDC hdc
, INT x
, INT y
, POINT
*prev_org
);
434 W32KAPI UINT WINAPI
NtGdiSetBoundsRect( HDC hdc
, const RECT
*rect
, UINT flags
);
435 W32KAPI BOOL WINAPI
NtGdiSetColorAdjustment( HDC hdc
, const COLORADJUSTMENT
*ca
);
436 W32KAPI INT WINAPI
NtGdiSetDIBitsToDeviceInternal( HDC hdc
, INT x_dst
, INT y_dst
, DWORD cx
,
437 DWORD cy
, INT x_src
, INT y_src
, UINT startscan
,
438 UINT lines
, const void *bits
, const BITMAPINFO
*bmi
,
439 UINT coloruse
, UINT max_bits
, UINT max_info
,
440 BOOL xform_coords
, HANDLE xform
);
441 W32KAPI BOOL WINAPI
NtGdiSetDeviceGammaRamp( HDC hdc
, void *ptr
);
442 W32KAPI DWORD WINAPI
NtGdiSetLayout( HDC hdc
, LONG wox
, DWORD layout
);
443 W32KAPI BOOL WINAPI
NtGdiSetMagicColors( HDC hdc
, DWORD magic
, ULONG index
);
444 W32KAPI INT WINAPI
NtGdiSetMetaRgn( HDC hdc
);
445 W32KAPI BOOL WINAPI
NtGdiSetMiterLimit( HDC hdc
, DWORD limit
, DWORD
*prev_limit
);
446 W32KAPI COLORREF WINAPI
NtGdiSetPixel( HDC hdc
, INT x
, INT y
, COLORREF color
);
447 W32KAPI BOOL WINAPI
NtGdiSetPixelFormat( HDC hdc
, INT format
);
448 W32KAPI BOOL WINAPI
NtGdiSetRectRgn( HRGN hrgn
, INT left
, INT top
, INT right
, INT bottom
);
449 W32KAPI UINT WINAPI
NtGdiSetSystemPaletteUse( HDC hdc
, UINT use
);
450 W32KAPI BOOL WINAPI
NtGdiSetTextJustification( HDC hdc
, INT extra
, INT breaks
);
451 W32KAPI BOOL WINAPI
NtGdiSetVirtualResolution( HDC hdc
, DWORD horz_res
, DWORD vert_res
,
452 DWORD horz_size
, DWORD vert_size
);
453 W32KAPI INT WINAPI
NtGdiStartDoc( HDC hdc
, const DOCINFOW
*doc
, BOOL
*banding
, INT job
);
454 W32KAPI INT WINAPI
NtGdiStartPage( HDC hdc
);
455 W32KAPI BOOL WINAPI
NtGdiStretchBlt( HDC hdc
, INT x_dst
, INT y_dst
, INT width_dst
, INT height_dst
,
456 HDC hdc_src
, INT x_src
, INT y_src
, INT width_src
, INT height_src
,
457 DWORD rop
, COLORREF bk_color
);
458 W32KAPI INT WINAPI
NtGdiStretchDIBitsInternal( HDC hdc
, INT x_dst
, INT y_dst
, INT width_dst
,
459 INT height_dst
, INT x_src
, INT y_src
, INT width_src
,
460 INT height_src
, const void *bits
, const BITMAPINFO
*bmi
,
461 UINT coloruse
, DWORD rop
, UINT max_info
, UINT max_bits
,
463 W32KAPI BOOL WINAPI
NtGdiStrokeAndFillPath( HDC hdc
);
464 W32KAPI BOOL WINAPI
NtGdiStrokePath( HDC hdc
);
465 W32KAPI BOOL WINAPI
NtGdiSwapBuffers( HDC hdc
);
466 W32KAPI BOOL WINAPI
NtGdiTransparentBlt( HDC hdc
, int x_dst
, int y_dst
, int width_dst
, int height_dst
,
467 HDC hdc_src
, int x_src
, int y_src
, int width_src
, int height_src
,
469 W32KAPI BOOL WINAPI
NtGdiTransformPoints( HDC hdc
, const POINT
*points_in
, POINT
*points_out
,
470 INT count
, UINT mode
);
471 W32KAPI BOOL WINAPI
NtGdiUnrealizeObject( HGDIOBJ obj
);
472 W32KAPI BOOL WINAPI
NtGdiUpdateColors( HDC hdc
);
473 W32KAPI BOOL WINAPI
NtGdiWidenPath( HDC hdc
);
475 W32KAPI NTSTATUS WINAPI
NtGdiDdDDICheckVidPnExclusiveOwnership( const D3DKMT_CHECKVIDPNEXCLUSIVEOWNERSHIP
*desc
);
476 W32KAPI NTSTATUS WINAPI
NtGdiDdDDICloseAdapter( const D3DKMT_CLOSEADAPTER
*desc
);
477 W32KAPI NTSTATUS WINAPI
NtGdiDdDDICreateDCFromMemory( D3DKMT_CREATEDCFROMMEMORY
*desc
);
478 W32KAPI NTSTATUS WINAPI
NtGdiDdDDICreateDevice( D3DKMT_CREATEDEVICE
*desc
);
479 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIDestroyDCFromMemory( const D3DKMT_DESTROYDCFROMMEMORY
*desc
);
480 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIDestroyDevice( const D3DKMT_DESTROYDEVICE
*desc
);
481 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIEnumAdapters2( D3DKMT_ENUMADAPTERS2
*desc
);
482 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIEscape( const D3DKMT_ESCAPE
*desc
);
483 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIOpenAdapterFromHdc( D3DKMT_OPENADAPTERFROMHDC
*desc
);
484 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIOpenAdapterFromDeviceName( D3DKMT_OPENADAPTERFROMDEVICENAME
*desc
);
485 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIOpenAdapterFromLuid( D3DKMT_OPENADAPTERFROMLUID
*desc
);
486 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIQueryAdapterInfo( D3DKMT_QUERYADAPTERINFO
*desc
);
487 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIQueryStatistics( D3DKMT_QUERYSTATISTICS
*stats
);
488 W32KAPI NTSTATUS WINAPI
NtGdiDdDDIQueryVideoMemoryInfo( D3DKMT_QUERYVIDEOMEMORYINFO
*desc
);
489 W32KAPI NTSTATUS WINAPI
NtGdiDdDDISetQueuedLimit( D3DKMT_SETQUEUEDLIMIT
*desc
);
490 W32KAPI NTSTATUS WINAPI
NtGdiDdDDISetVidPnSourceOwner( const D3DKMT_SETVIDPNSOURCEOWNER
*desc
);
492 /* Wine extensions */
493 W32KAPI
const struct vulkan_funcs
* __wine_get_vulkan_driver(UINT version
);
494 W32KAPI
const struct opengl_funcs
*__wine_get_wgl_driver( HDC hdc
, UINT version
);
495 W32KAPI BOOL WINAPI
__wine_get_icm_profile( HDC hdc
, BOOL allow_default
, DWORD
*size
, WCHAR
*filename
);
496 W32KAPI BOOL WINAPI
__wine_get_file_outline_text_metric( const WCHAR
*path
, TEXTMETRICW
*otm
,
497 UINT
*em_square
, WCHAR
*face_name
);