Commit 87b8a912 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Use syscall interface for NtUserSetWindow* functions.

parent c660d37a
...@@ -1153,11 +1153,6 @@ static struct unix_funcs unix_funcs = ...@@ -1153,11 +1153,6 @@ static struct unix_funcs unix_funcs =
NtUserSetClassWord, NtUserSetClassWord,
NtUserSetLayeredWindowAttributes, NtUserSetLayeredWindowAttributes,
NtUserSetParent, NtUserSetParent,
NtUserSetWindowLong,
NtUserSetWindowLongPtr,
NtUserSetWindowPlacement,
NtUserSetWindowRgn,
NtUserSetWindowWord,
NtUserShowWindow, NtUserShowWindow,
NtUserShowWindowAsync, NtUserShowWindowAsync,
NtUserSystemParametersInfo, NtUserSystemParametersInfo,
......
...@@ -259,7 +259,12 @@ static void * const syscalls[] = ...@@ -259,7 +259,12 @@ static void * const syscalls[] =
NtUserSetThreadDesktop, NtUserSetThreadDesktop,
NtUserSetTimer, NtUserSetTimer,
NtUserSetWinEventHook, NtUserSetWinEventHook,
NtUserSetWindowLong,
NtUserSetWindowLongPtr,
NtUserSetWindowPlacement,
NtUserSetWindowPos, NtUserSetWindowPos,
NtUserSetWindowRgn,
NtUserSetWindowWord,
NtUserSetWindowsHookEx, NtUserSetWindowsHookEx,
NtUserShowCaret, NtUserShowCaret,
NtUserShowCursor, NtUserShowCursor,
......
...@@ -1246,15 +1246,15 @@ ...@@ -1246,15 +1246,15 @@
@ stub NtUserSetWindowFNID @ stub NtUserSetWindowFNID
@ stub NtUserSetWindowFeedbackSetting @ stub NtUserSetWindowFeedbackSetting
@ stub NtUserSetWindowGroup @ stub NtUserSetWindowGroup
@ stdcall NtUserSetWindowLong(long long long long) @ stdcall -syscall NtUserSetWindowLong(long long long long)
@ stdcall NtUserSetWindowLongPtr(long long long long) @ stdcall -syscall NtUserSetWindowLongPtr(long long long long)
@ stdcall NtUserSetWindowPlacement(long ptr) @ stdcall -syscall NtUserSetWindowPlacement(long ptr)
@ stdcall -syscall NtUserSetWindowPos(long long long long long long long) @ stdcall -syscall NtUserSetWindowPos(long long long long long long long)
@ stdcall NtUserSetWindowRgn(long long long) @ stdcall -syscall NtUserSetWindowRgn(long long long)
@ stub NtUserSetWindowRgnEx @ stub NtUserSetWindowRgnEx
@ stub NtUserSetWindowShowState @ stub NtUserSetWindowShowState
@ stub NtUserSetWindowStationUser @ stub NtUserSetWindowStationUser
@ stdcall NtUserSetWindowWord(long long long) @ stdcall -syscall NtUserSetWindowWord(long long long)
@ stub NtUserSetWindowsHookAW @ stub NtUserSetWindowsHookAW
@ stdcall -syscall NtUserSetWindowsHookEx(ptr ptr long long ptr long) @ stdcall -syscall NtUserSetWindowsHookEx(ptr ptr long long ptr long)
@ stdcall -syscall NtUserShowCaret(long) @ stdcall -syscall NtUserShowCaret(long)
......
...@@ -209,11 +209,6 @@ struct unix_funcs ...@@ -209,11 +209,6 @@ struct unix_funcs
WORD (WINAPI *pNtUserSetClassWord)( HWND hwnd, INT offset, WORD newval ); WORD (WINAPI *pNtUserSetClassWord)( HWND hwnd, INT offset, WORD newval );
BOOL (WINAPI *pNtUserSetLayeredWindowAttributes)( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags ); BOOL (WINAPI *pNtUserSetLayeredWindowAttributes)( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags );
HWND (WINAPI *pNtUserSetParent)( HWND hwnd, HWND parent ); HWND (WINAPI *pNtUserSetParent)( HWND hwnd, HWND parent );
LONG (WINAPI *pNtUserSetWindowLong)( HWND hwnd, INT offset, LONG newval, BOOL ansi );
LONG_PTR (WINAPI *pNtUserSetWindowLongPtr)( HWND hwnd, INT offset, LONG_PTR newval, BOOL ansi );
BOOL (WINAPI *pNtUserSetWindowPlacement)( HWND hwnd, const WINDOWPLACEMENT *wpl );
int (WINAPI *pNtUserSetWindowRgn)( HWND hwnd, HRGN hrgn, BOOL redraw );
WORD (WINAPI *pNtUserSetWindowWord)( HWND hwnd, INT offset, WORD newval );
BOOL (WINAPI *pNtUserShowWindow)( HWND hwnd, INT cmd ); BOOL (WINAPI *pNtUserShowWindow)( HWND hwnd, INT cmd );
BOOL (WINAPI *pNtUserShowWindowAsync)( HWND hwnd, INT cmd ); BOOL (WINAPI *pNtUserShowWindowAsync)( HWND hwnd, INT cmd );
BOOL (WINAPI *pNtUserSystemParametersInfo)( UINT action, UINT val, PVOID ptr, UINT winini ); BOOL (WINAPI *pNtUserSystemParametersInfo)( UINT action, UINT val, PVOID ptr, UINT winini );
......
...@@ -826,36 +826,6 @@ HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent ) ...@@ -826,36 +826,6 @@ HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent )
return unix_funcs->pNtUserSetParent( hwnd, parent ); return unix_funcs->pNtUserSetParent( hwnd, parent );
} }
LONG WINAPI NtUserSetWindowLong( HWND hwnd, INT offset, LONG newval, BOOL ansi )
{
if (!unix_funcs) return 0;
return unix_funcs->pNtUserSetWindowLong( hwnd, offset, newval, ansi );
}
LONG_PTR WINAPI NtUserSetWindowLongPtr( HWND hwnd, INT offset, LONG_PTR newval, BOOL ansi )
{
if (!unix_funcs) return 0;
return unix_funcs->pNtUserSetWindowLongPtr( hwnd, offset, newval, ansi );
}
BOOL WINAPI NtUserSetWindowPlacement( HWND hwnd, const WINDOWPLACEMENT *wpl )
{
if (!unix_funcs) return 0;
return unix_funcs->pNtUserSetWindowPlacement( hwnd, wpl );
}
int WINAPI NtUserSetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
{
if (!unix_funcs) return 0;
return unix_funcs->pNtUserSetWindowRgn( hwnd, hrgn, redraw );
}
WORD WINAPI NtUserSetWindowWord( HWND hwnd, INT offset, WORD newval )
{
if (!unix_funcs) return 0;
return unix_funcs->pNtUserSetWindowWord( hwnd, offset, newval );
}
BOOL WINAPI NtUserShowWindowAsync( HWND hwnd, INT cmd ) BOOL WINAPI NtUserShowWindowAsync( HWND hwnd, INT cmd )
{ {
if (!unix_funcs) return FALSE; if (!unix_funcs) return FALSE;
......
...@@ -246,7 +246,12 @@ ...@@ -246,7 +246,12 @@
SYSCALL_ENTRY( NtUserSetThreadDesktop ) \ SYSCALL_ENTRY( NtUserSetThreadDesktop ) \
SYSCALL_ENTRY( NtUserSetTimer ) \ SYSCALL_ENTRY( NtUserSetTimer ) \
SYSCALL_ENTRY( NtUserSetWinEventHook ) \ SYSCALL_ENTRY( NtUserSetWinEventHook ) \
SYSCALL_ENTRY( NtUserSetWindowLong ) \
SYSCALL_ENTRY( NtUserSetWindowLongPtr ) \
SYSCALL_ENTRY( NtUserSetWindowPlacement ) \
SYSCALL_ENTRY( NtUserSetWindowPos ) \ SYSCALL_ENTRY( NtUserSetWindowPos ) \
SYSCALL_ENTRY( NtUserSetWindowRgn ) \
SYSCALL_ENTRY( NtUserSetWindowWord ) \
SYSCALL_ENTRY( NtUserSetWindowsHookEx ) \ SYSCALL_ENTRY( NtUserSetWindowsHookEx ) \
SYSCALL_ENTRY( NtUserShowCaret ) \ SYSCALL_ENTRY( NtUserShowCaret ) \
SYSCALL_ENTRY( NtUserShowCursor ) \ SYSCALL_ENTRY( NtUserShowCursor ) \
......
...@@ -1959,6 +1959,34 @@ NTSTATUS WINAPI wow64_NtUserSetWinEventHook( UINT *args ) ...@@ -1959,6 +1959,34 @@ NTSTATUS WINAPI wow64_NtUserSetWinEventHook( UINT *args )
return HandleToUlong( ret ); return HandleToUlong( ret );
} }
NTSTATUS WINAPI wow64_NtUserSetWindowLong( UINT *args )
{
HWND hwnd = get_handle( &args );
INT offset = get_ulong( &args );
LONG newval = get_ulong( &args );
BOOL ansi = get_ulong( &args );
return NtUserSetWindowLong( hwnd, offset, newval, ansi );
}
NTSTATUS WINAPI wow64_NtUserSetWindowLongPtr( UINT *args )
{
HWND hwnd = get_handle( &args );
INT offset = get_ulong( &args );
LONG_PTR newval = get_ulong( &args );
BOOL ansi = get_ulong( &args );
return NtUserSetWindowLongPtr( hwnd, offset, newval, ansi );
}
NTSTATUS WINAPI wow64_NtUserSetWindowPlacement( UINT *args )
{
HWND hwnd = get_handle( &args );
const WINDOWPLACEMENT *wpl = get_ptr( &args );
return NtUserSetWindowPlacement( hwnd, wpl );
}
NTSTATUS WINAPI wow64_NtUserSetWindowPos( UINT *args ) NTSTATUS WINAPI wow64_NtUserSetWindowPos( UINT *args )
{ {
HWND hwnd = get_handle( &args ); HWND hwnd = get_handle( &args );
...@@ -1972,6 +2000,24 @@ NTSTATUS WINAPI wow64_NtUserSetWindowPos( UINT *args ) ...@@ -1972,6 +2000,24 @@ NTSTATUS WINAPI wow64_NtUserSetWindowPos( UINT *args )
return NtUserSetWindowPos( hwnd, after, x, y, cx, cy, flags ); return NtUserSetWindowPos( hwnd, after, x, y, cx, cy, flags );
} }
NTSTATUS WINAPI wow64_NtUserSetWindowRgn( UINT *args )
{
HWND hwnd = get_handle( &args );
HRGN hrgn = get_handle( &args );
BOOL redraw = get_ulong( &args );
return NtUserSetWindowRgn( hwnd, hrgn, redraw );
}
NTSTATUS WINAPI wow64_NtUserSetWindowWord( UINT *args )
{
HWND hwnd = get_handle( &args );
INT offset = get_ulong( &args );
WORD newval = get_ulong( &args );
return NtUserSetWindowWord( hwnd, offset, newval );
}
NTSTATUS WINAPI wow64_NtUserSetWindowsHookEx( UINT *args ) NTSTATUS WINAPI wow64_NtUserSetWindowsHookEx( UINT *args )
{ {
HINSTANCE inst = get_handle( &args ); HINSTANCE inst = get_handle( &args );
......
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