win32u: Move NtUserGetOpenClipboardWindow implementation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
65f3b653fa
commit
da01911cc1
|
@ -750,25 +750,6 @@ BOOL WINAPI EmptyClipboard(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
|
||||||
* GetOpenClipboardWindow (USER32.@)
|
|
||||||
*/
|
|
||||||
HWND WINAPI GetOpenClipboardWindow(void)
|
|
||||||
{
|
|
||||||
HWND hWndOpen = 0;
|
|
||||||
|
|
||||||
SERVER_START_REQ( get_clipboard_info )
|
|
||||||
{
|
|
||||||
if (!wine_server_call_err( req )) hWndOpen = wine_server_ptr_handle( reply->window );
|
|
||||||
}
|
|
||||||
SERVER_END_REQ;
|
|
||||||
|
|
||||||
TRACE( "returning %p\n", hWndOpen );
|
|
||||||
|
|
||||||
return hWndOpen;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* SetClipboardViewer (USER32.@)
|
* SetClipboardViewer (USER32.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -353,7 +353,7 @@
|
||||||
@ stdcall GetNextDlgGroupItem(long long long)
|
@ stdcall GetNextDlgGroupItem(long long long)
|
||||||
@ stdcall GetNextDlgTabItem(long long long)
|
@ stdcall GetNextDlgTabItem(long long long)
|
||||||
# @ stub GetNextQueueWindow
|
# @ stub GetNextQueueWindow
|
||||||
@ stdcall GetOpenClipboardWindow()
|
@ stdcall GetOpenClipboardWindow() NtUserGetOpenClipboardWindow
|
||||||
@ stdcall GetParent(long)
|
@ stdcall GetParent(long)
|
||||||
@ stdcall GetPhysicalCursorPos(ptr)
|
@ stdcall GetPhysicalCursorPos(ptr)
|
||||||
@ stdcall GetPointerDevices(ptr ptr)
|
@ stdcall GetPointerDevices(ptr ptr)
|
||||||
|
|
|
@ -222,6 +222,23 @@ HWND WINAPI NtUserGetClipboardViewer(void)
|
||||||
return viewer;
|
return viewer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* NtUserGetOpenClipboardWindow (win32u.@)
|
||||||
|
*/
|
||||||
|
HWND WINAPI NtUserGetOpenClipboardWindow(void)
|
||||||
|
{
|
||||||
|
HWND window = 0;
|
||||||
|
|
||||||
|
SERVER_START_REQ( get_clipboard_info )
|
||||||
|
{
|
||||||
|
if (!wine_server_call_err( req )) window = wine_server_ptr_handle( reply->window );
|
||||||
|
}
|
||||||
|
SERVER_END_REQ;
|
||||||
|
|
||||||
|
TRACE( "returning %p\n", window );
|
||||||
|
return window;
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* NtUserGetClipboardSequenceNumber (win32u.@)
|
* NtUserGetClipboardSequenceNumber (win32u.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -116,6 +116,7 @@ static void * const syscalls[] =
|
||||||
NtUserGetKeyboardState,
|
NtUserGetKeyboardState,
|
||||||
NtUserGetLayeredWindowAttributes,
|
NtUserGetLayeredWindowAttributes,
|
||||||
NtUserGetObjectInformation,
|
NtUserGetObjectInformation,
|
||||||
|
NtUserGetOpenClipboardWindow,
|
||||||
NtUserGetProcessWindowStation,
|
NtUserGetProcessWindowStation,
|
||||||
NtUserGetProp,
|
NtUserGetProp,
|
||||||
NtUserGetThreadDesktop,
|
NtUserGetThreadDesktop,
|
||||||
|
|
|
@ -959,7 +959,7 @@
|
||||||
@ stub NtUserGetMouseMovePointsEx
|
@ stub NtUserGetMouseMovePointsEx
|
||||||
@ stdcall -syscall NtUserGetObjectInformation(long long long long ptr)
|
@ stdcall -syscall NtUserGetObjectInformation(long long long long ptr)
|
||||||
@ stub NtUserGetOemBitmapSize
|
@ stub NtUserGetOemBitmapSize
|
||||||
@ stub NtUserGetOpenClipboardWindow
|
@ stdcall -syscall NtUserGetOpenClipboardWindow()
|
||||||
@ stub NtUserGetOwnerTransformedMonitorRect
|
@ stub NtUserGetOwnerTransformedMonitorRect
|
||||||
@ stub NtUserGetPhysicalDeviceRect
|
@ stub NtUserGetPhysicalDeviceRect
|
||||||
@ stub NtUserGetPointerCursorId
|
@ stub NtUserGetPointerCursorId
|
||||||
|
|
|
@ -102,6 +102,7 @@
|
||||||
SYSCALL_ENTRY( NtUserGetKeyboardState ) \
|
SYSCALL_ENTRY( NtUserGetKeyboardState ) \
|
||||||
SYSCALL_ENTRY( NtUserGetLayeredWindowAttributes ) \
|
SYSCALL_ENTRY( NtUserGetLayeredWindowAttributes ) \
|
||||||
SYSCALL_ENTRY( NtUserGetObjectInformation ) \
|
SYSCALL_ENTRY( NtUserGetObjectInformation ) \
|
||||||
|
SYSCALL_ENTRY( NtUserGetOpenClipboardWindow ) \
|
||||||
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
|
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
|
||||||
SYSCALL_ENTRY( NtUserGetProp ) \
|
SYSCALL_ENTRY( NtUserGetProp ) \
|
||||||
SYSCALL_ENTRY( NtUserGetThreadDesktop ) \
|
SYSCALL_ENTRY( NtUserGetThreadDesktop ) \
|
||||||
|
|
|
@ -205,6 +205,11 @@ NTSTATUS WINAPI wow64_NtUserGetClipboardOwner( UINT *args )
|
||||||
return HandleToUlong( NtUserGetClipboardOwner() );
|
return HandleToUlong( NtUserGetClipboardOwner() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI wow64_NtUserGetOpenClipboardWindow( UINT *args )
|
||||||
|
{
|
||||||
|
return HandleToUlong( NtUserGetOpenClipboardWindow() );
|
||||||
|
}
|
||||||
|
|
||||||
NTSTATUS WINAPI wow64_NtUserGetClipboardSequenceNumber( UINT *args )
|
NTSTATUS WINAPI wow64_NtUserGetClipboardSequenceNumber( UINT *args )
|
||||||
{
|
{
|
||||||
return NtUserGetClipboardSequenceNumber();
|
return NtUserGetClipboardSequenceNumber();
|
||||||
|
|
|
@ -74,6 +74,7 @@ BOOL WINAPI NtUserGetKeyboardState( BYTE *state );
|
||||||
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
|
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
|
||||||
BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
|
BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
|
||||||
DWORD len, DWORD *needed );
|
DWORD len, DWORD *needed );
|
||||||
|
HWND WINAPI NtUserGetOpenClipboardWindow(void);
|
||||||
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count );
|
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count );
|
||||||
HWINSTA WINAPI NtUserGetProcessWindowStation(void);
|
HWINSTA WINAPI NtUserGetProcessWindowStation(void);
|
||||||
HANDLE WINAPI NtUserGetProp( HWND hwnd, const WCHAR *str );
|
HANDLE WINAPI NtUserGetProp( HWND hwnd, const WCHAR *str );
|
||||||
|
|
Loading…
Reference in New Issue