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.@)
|
||||
*/
|
||||
|
|
|
@ -353,7 +353,7 @@
|
|||
@ stdcall GetNextDlgGroupItem(long long long)
|
||||
@ stdcall GetNextDlgTabItem(long long long)
|
||||
# @ stub GetNextQueueWindow
|
||||
@ stdcall GetOpenClipboardWindow()
|
||||
@ stdcall GetOpenClipboardWindow() NtUserGetOpenClipboardWindow
|
||||
@ stdcall GetParent(long)
|
||||
@ stdcall GetPhysicalCursorPos(ptr)
|
||||
@ stdcall GetPointerDevices(ptr ptr)
|
||||
|
|
|
@ -222,6 +222,23 @@ HWND WINAPI NtUserGetClipboardViewer(void)
|
|||
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.@)
|
||||
*/
|
||||
|
|
|
@ -116,6 +116,7 @@ static void * const syscalls[] =
|
|||
NtUserGetKeyboardState,
|
||||
NtUserGetLayeredWindowAttributes,
|
||||
NtUserGetObjectInformation,
|
||||
NtUserGetOpenClipboardWindow,
|
||||
NtUserGetProcessWindowStation,
|
||||
NtUserGetProp,
|
||||
NtUserGetThreadDesktop,
|
||||
|
|
|
@ -959,7 +959,7 @@
|
|||
@ stub NtUserGetMouseMovePointsEx
|
||||
@ stdcall -syscall NtUserGetObjectInformation(long long long long ptr)
|
||||
@ stub NtUserGetOemBitmapSize
|
||||
@ stub NtUserGetOpenClipboardWindow
|
||||
@ stdcall -syscall NtUserGetOpenClipboardWindow()
|
||||
@ stub NtUserGetOwnerTransformedMonitorRect
|
||||
@ stub NtUserGetPhysicalDeviceRect
|
||||
@ stub NtUserGetPointerCursorId
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
SYSCALL_ENTRY( NtUserGetKeyboardState ) \
|
||||
SYSCALL_ENTRY( NtUserGetLayeredWindowAttributes ) \
|
||||
SYSCALL_ENTRY( NtUserGetObjectInformation ) \
|
||||
SYSCALL_ENTRY( NtUserGetOpenClipboardWindow ) \
|
||||
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
|
||||
SYSCALL_ENTRY( NtUserGetProp ) \
|
||||
SYSCALL_ENTRY( NtUserGetThreadDesktop ) \
|
||||
|
|
|
@ -205,6 +205,11 @@ NTSTATUS WINAPI wow64_NtUserGetClipboardOwner( UINT *args )
|
|||
return HandleToUlong( NtUserGetClipboardOwner() );
|
||||
}
|
||||
|
||||
NTSTATUS WINAPI wow64_NtUserGetOpenClipboardWindow( UINT *args )
|
||||
{
|
||||
return HandleToUlong( NtUserGetOpenClipboardWindow() );
|
||||
}
|
||||
|
||||
NTSTATUS WINAPI wow64_NtUserGetClipboardSequenceNumber( UINT *args )
|
||||
{
|
||||
return NtUserGetClipboardSequenceNumber();
|
||||
|
|
|
@ -74,6 +74,7 @@ BOOL WINAPI NtUserGetKeyboardState( BYTE *state );
|
|||
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
|
||||
BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
|
||||
DWORD len, DWORD *needed );
|
||||
HWND WINAPI NtUserGetOpenClipboardWindow(void);
|
||||
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count );
|
||||
HWINSTA WINAPI NtUserGetProcessWindowStation(void);
|
||||
HANDLE WINAPI NtUserGetProp( HWND hwnd, const WCHAR *str );
|
||||
|
|
Loading…
Reference in New Issue