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

win32u: Move NtUserGetOpenClipboardWindow implementation from user32.

parent 65f3b653
......@@ -751,25 +751,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.@)
*/
HWND WINAPI SetClipboardViewer( HWND hwnd )
......
......@@ -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)
......
......@@ -223,6 +223,23 @@ HWND WINAPI NtUserGetClipboardViewer(void)
}
/**************************************************************************
* 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.@)
*/
DWORD WINAPI NtUserGetClipboardSequenceNumber(void)
......
......@@ -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 );
......
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