Commit d169d131 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Use syscall interface for spooler functions.

parent 6c7dff2a
...@@ -1127,13 +1127,11 @@ static struct unix_funcs unix_funcs = ...@@ -1127,13 +1127,11 @@ static struct unix_funcs unix_funcs =
NtGdiGetRandomRgn, NtGdiGetRandomRgn,
NtGdiGetRasterizerCaps, NtGdiGetRasterizerCaps,
NtGdiGetRealizationInfo, NtGdiGetRealizationInfo,
NtGdiGetSpoolMessage,
NtGdiGetTextCharsetInfo, NtGdiGetTextCharsetInfo,
NtGdiGetTextExtentExW, NtGdiGetTextExtentExW,
NtGdiGetTextFaceW, NtGdiGetTextFaceW,
NtGdiGetTextMetricsW, NtGdiGetTextMetricsW,
NtGdiGradientFill, NtGdiGradientFill,
NtGdiInitSpool,
NtGdiIntersectClipRect, NtGdiIntersectClipRect,
NtGdiInvertRgn, NtGdiInvertRgn,
NtGdiLineTo, NtGdiLineTo,
......
...@@ -69,9 +69,11 @@ static void * const syscalls[] = ...@@ -69,9 +69,11 @@ static void * const syscalls[] =
NtGdiGetPath, NtGdiGetPath,
NtGdiGetRegionData, NtGdiGetRegionData,
NtGdiGetRgnBox, NtGdiGetRgnBox,
NtGdiGetSpoolMessage,
NtGdiGetSystemPaletteUse, NtGdiGetSystemPaletteUse,
NtGdiGetTransform, NtGdiGetTransform,
NtGdiHfontCreate, NtGdiHfontCreate,
NtGdiInitSpool,
NtGdiOffsetRgn, NtGdiOffsetRgn,
NtGdiPathToRegion, NtGdiPathToRegion,
NtGdiPtInRegion, NtGdiPtInRegion,
......
...@@ -510,7 +510,7 @@ ...@@ -510,7 +510,7 @@
@ stdcall -syscall NtGdiGetRegionData(long long ptr) @ stdcall -syscall NtGdiGetRegionData(long long ptr)
@ stdcall -syscall NtGdiGetRgnBox(long ptr) @ stdcall -syscall NtGdiGetRgnBox(long ptr)
@ stub NtGdiGetServerMetaFileBits @ stub NtGdiGetServerMetaFileBits
@ stdcall NtGdiGetSpoolMessage(ptr long ptr long) @ stdcall -syscall NtGdiGetSpoolMessage(ptr long ptr long)
@ stub NtGdiGetStats @ stub NtGdiGetStats
@ stub NtGdiGetStringBitmapW @ stub NtGdiGetStringBitmapW
@ stub NtGdiGetSuggestedOPMProtectedOutputArraySize @ stub NtGdiGetSuggestedOPMProtectedOutputArraySize
...@@ -532,7 +532,7 @@ ...@@ -532,7 +532,7 @@
@ stdcall -syscall NtGdiHfontCreate(ptr long long long ptr) @ stdcall -syscall NtGdiHfontCreate(ptr long long long ptr)
@ stub NtGdiIcmBrushInfo @ stub NtGdiIcmBrushInfo
@ stub NtGdiInit @ stub NtGdiInit
@ stdcall NtGdiInitSpool() @ stdcall -syscall NtGdiInitSpool()
@ stdcall NtGdiIntersectClipRect(long long long long long) @ stdcall NtGdiIntersectClipRect(long long long long long)
@ stdcall NtGdiInvertRgn(long long) @ stdcall NtGdiInvertRgn(long long)
@ stdcall NtGdiLineTo(long long long) @ stdcall NtGdiLineTo(long long long)
......
...@@ -124,7 +124,6 @@ struct unix_funcs ...@@ -124,7 +124,6 @@ struct unix_funcs
INT (WINAPI *pNtGdiGetRandomRgn)( HDC hdc, HRGN region, INT code ); INT (WINAPI *pNtGdiGetRandomRgn)( HDC hdc, HRGN region, INT code );
BOOL (WINAPI *pNtGdiGetRasterizerCaps)( RASTERIZER_STATUS *status, UINT size ); BOOL (WINAPI *pNtGdiGetRasterizerCaps)( RASTERIZER_STATUS *status, UINT size );
BOOL (WINAPI *pNtGdiGetRealizationInfo)( HDC hdc, struct font_realization_info *info ); BOOL (WINAPI *pNtGdiGetRealizationInfo)( HDC hdc, struct font_realization_info *info );
DWORD (WINAPI *pNtGdiGetSpoolMessage)( void *ptr1, DWORD data2, void *ptr3, DWORD data4 );
UINT (WINAPI *pNtGdiGetTextCharsetInfo)( HDC hdc, FONTSIGNATURE *fs, DWORD flags ); UINT (WINAPI *pNtGdiGetTextCharsetInfo)( HDC hdc, FONTSIGNATURE *fs, DWORD flags );
BOOL (WINAPI *pNtGdiGetTextExtentExW)( HDC hdc, const WCHAR *str, INT count, INT max_ext, BOOL (WINAPI *pNtGdiGetTextExtentExW)( HDC hdc, const WCHAR *str, INT count, INT max_ext,
INT *nfit, INT *dxs, SIZE *size, UINT flags ); INT *nfit, INT *dxs, SIZE *size, UINT flags );
...@@ -132,7 +131,6 @@ struct unix_funcs ...@@ -132,7 +131,6 @@ struct unix_funcs
BOOL (WINAPI *pNtGdiGetTextMetricsW)( HDC hdc, TEXTMETRICW *metrics, ULONG flags ); BOOL (WINAPI *pNtGdiGetTextMetricsW)( HDC hdc, TEXTMETRICW *metrics, ULONG flags );
BOOL (WINAPI *pNtGdiGradientFill)( HDC hdc, TRIVERTEX *vert_array, ULONG nvert, BOOL (WINAPI *pNtGdiGradientFill)( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
void *grad_array, ULONG ngrad, ULONG mode ); void *grad_array, ULONG ngrad, ULONG mode );
DWORD (WINAPI *pNtGdiInitSpool)(void);
INT (WINAPI *pNtGdiIntersectClipRect)( HDC hdc, INT left, INT top, INT right, INT bottom ); INT (WINAPI *pNtGdiIntersectClipRect)( HDC hdc, INT left, INT top, INT right, INT bottom );
BOOL (WINAPI *pNtGdiInvertRgn)( HDC hdc, HRGN hrgn ); BOOL (WINAPI *pNtGdiInvertRgn)( HDC hdc, HRGN hrgn );
BOOL (WINAPI *pNtGdiLineTo)( HDC hdc, INT x, INT y ); BOOL (WINAPI *pNtGdiLineTo)( HDC hdc, INT x, INT y );
......
...@@ -300,11 +300,6 @@ BOOL WINAPI NtGdiGetRealizationInfo( HDC hdc, struct font_realization_info *info ...@@ -300,11 +300,6 @@ BOOL WINAPI NtGdiGetRealizationInfo( HDC hdc, struct font_realization_info *info
return unix_funcs->pNtGdiGetRealizationInfo( hdc, info ); return unix_funcs->pNtGdiGetRealizationInfo( hdc, info );
} }
DWORD WINAPI NtGdiGetSpoolMessage( void *ptr1, DWORD data2, void *ptr3, DWORD data4 )
{
return unix_funcs->pNtGdiGetSpoolMessage( ptr1, data2, ptr3, data4 );
}
UINT WINAPI NtGdiGetTextCharsetInfo( HDC hdc, FONTSIGNATURE *fs, DWORD flags ) UINT WINAPI NtGdiGetTextCharsetInfo( HDC hdc, FONTSIGNATURE *fs, DWORD flags )
{ {
return unix_funcs->pNtGdiGetTextCharsetInfo( hdc, fs, flags ); return unix_funcs->pNtGdiGetTextCharsetInfo( hdc, fs, flags );
...@@ -332,11 +327,6 @@ BOOL WINAPI NtGdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert, ...@@ -332,11 +327,6 @@ BOOL WINAPI NtGdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
return unix_funcs->pNtGdiGradientFill( hdc, vert_array, nvert, grad_array, ngrad, mode ); return unix_funcs->pNtGdiGradientFill( hdc, vert_array, nvert, grad_array, ngrad, mode );
} }
DWORD WINAPI NtGdiInitSpool(void)
{
return unix_funcs->pNtGdiInitSpool();
}
INT WINAPI NtGdiIntersectClipRect( HDC hdc, INT left, INT top, INT right, INT bottom ) INT WINAPI NtGdiIntersectClipRect( HDC hdc, INT left, INT top, INT right, INT bottom )
{ {
return unix_funcs->pNtGdiIntersectClipRect( hdc, left, top, right, bottom ); return unix_funcs->pNtGdiIntersectClipRect( hdc, left, top, right, bottom );
......
...@@ -564,6 +564,21 @@ NTSTATUS WINAPI wow64_NtGdiFlattenPath( UINT *args ) ...@@ -564,6 +564,21 @@ NTSTATUS WINAPI wow64_NtGdiFlattenPath( UINT *args )
return NtGdiFlattenPath( hdc ); return NtGdiFlattenPath( hdc );
} }
NTSTATUS WINAPI wow64_NtGdiGetSpoolMessage( UINT *args )
{
void *ptr1 = get_ptr( &args );
DWORD data2 = get_ulong( &args );
void *ptr3 = get_ptr( &args );
DWORD data4 = get_ulong( &args );
return NtGdiGetSpoolMessage( ptr1, data2, ptr3, data4 );
}
NTSTATUS WINAPI wow64_NtGdiInitSpool( UINT *args )
{
return NtGdiInitSpool();
}
NTSTATUS WINAPI wow64_NtGdiFlush( UINT *args ) NTSTATUS WINAPI wow64_NtGdiFlush( UINT *args )
{ {
return NtGdiFlush(); return NtGdiFlush();
......
...@@ -57,9 +57,11 @@ ...@@ -57,9 +57,11 @@
SYSCALL_ENTRY( NtGdiGetPath ) \ SYSCALL_ENTRY( NtGdiGetPath ) \
SYSCALL_ENTRY( NtGdiGetRegionData ) \ SYSCALL_ENTRY( NtGdiGetRegionData ) \
SYSCALL_ENTRY( NtGdiGetRgnBox ) \ SYSCALL_ENTRY( NtGdiGetRgnBox ) \
SYSCALL_ENTRY( NtGdiGetSpoolMessage ) \
SYSCALL_ENTRY( NtGdiGetSystemPaletteUse ) \ SYSCALL_ENTRY( NtGdiGetSystemPaletteUse ) \
SYSCALL_ENTRY( NtGdiGetTransform ) \ SYSCALL_ENTRY( NtGdiGetTransform ) \
SYSCALL_ENTRY( NtGdiHfontCreate ) \ SYSCALL_ENTRY( NtGdiHfontCreate ) \
SYSCALL_ENTRY( NtGdiInitSpool ) \
SYSCALL_ENTRY( NtGdiOffsetRgn ) \ SYSCALL_ENTRY( NtGdiOffsetRgn ) \
SYSCALL_ENTRY( NtGdiPathToRegion ) \ SYSCALL_ENTRY( NtGdiPathToRegion ) \
SYSCALL_ENTRY( NtGdiPtInRegion ) \ SYSCALL_ENTRY( NtGdiPtInRegion ) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment