win32u: Move NtUserGetClipboardSequenceNumber 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
6a768e2882
commit
39b9f1318e
|
@ -998,23 +998,6 @@ INT WINAPI GetPriorityClipboardFormat(UINT *list, INT nCount)
|
|||
}
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
* GetClipboardSequenceNumber (USER32.@)
|
||||
*/
|
||||
DWORD WINAPI GetClipboardSequenceNumber(VOID)
|
||||
{
|
||||
DWORD seqno = 0;
|
||||
|
||||
SERVER_START_REQ( get_clipboard_info )
|
||||
{
|
||||
if (!wine_server_call_err( req )) seqno = reply->seqno;
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
|
||||
TRACE( "returning %u\n", seqno );
|
||||
return seqno;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* AddClipboardFormatListener (USER32.@)
|
||||
*/
|
||||
|
|
|
@ -278,7 +278,7 @@
|
|||
@ stdcall GetClipboardFormatNameA(long ptr long)
|
||||
@ stdcall GetClipboardFormatNameW(long ptr long) NtUserGetClipboardFormatName
|
||||
@ stdcall GetClipboardOwner() NtUserGetClipboardOwner
|
||||
@ stdcall GetClipboardSequenceNumber ()
|
||||
@ stdcall GetClipboardSequenceNumber() NtUserGetClipboardSequenceNumber
|
||||
@ stdcall GetClipboardViewer() NtUserGetClipboardViewer
|
||||
@ stdcall GetComboBoxInfo(long ptr)
|
||||
@ stdcall GetCurrentInputMessageSource(ptr)
|
||||
|
|
|
@ -202,3 +202,20 @@ HWND WINAPI NtUserGetClipboardViewer(void)
|
|||
TRACE( "returning %p\n", viewer );
|
||||
return viewer;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* NtUserGetClipboardSequenceNumber (win32u.@)
|
||||
*/
|
||||
DWORD WINAPI NtUserGetClipboardSequenceNumber(void)
|
||||
{
|
||||
DWORD seqno = 0;
|
||||
|
||||
SERVER_START_REQ( get_clipboard_info )
|
||||
{
|
||||
if (!wine_server_call_err( req )) seqno = reply->seqno;
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
|
||||
TRACE( "returning %u\n", seqno );
|
||||
return seqno;
|
||||
}
|
||||
|
|
|
@ -107,6 +107,7 @@ static void * const syscalls[] =
|
|||
NtUserCreateWindowStation,
|
||||
NtUserGetClipboardFormatName,
|
||||
NtUserGetClipboardOwner,
|
||||
NtUserGetClipboardSequenceNumber,
|
||||
NtUserGetClipboardViewer,
|
||||
NtUserGetLayeredWindowAttributes,
|
||||
NtUserGetObjectInformation,
|
||||
|
|
|
@ -905,7 +905,7 @@
|
|||
@ stub NtUserGetClipboardData
|
||||
@ stdcall -syscall NtUserGetClipboardFormatName(long ptr long)
|
||||
@ stdcall -syscall NtUserGetClipboardOwner()
|
||||
@ stub NtUserGetClipboardSequenceNumber
|
||||
@ stdcall -syscall NtUserGetClipboardSequenceNumber()
|
||||
@ stdcall -syscall NtUserGetClipboardViewer()
|
||||
@ stub NtUserGetComboBoxInfo
|
||||
@ stub NtUserGetControlBrush
|
||||
|
|
|
@ -94,6 +94,7 @@
|
|||
SYSCALL_ENTRY( NtUserCreateWindowStation ) \
|
||||
SYSCALL_ENTRY( NtUserGetClipboardFormatName ) \
|
||||
SYSCALL_ENTRY( NtUserGetClipboardOwner ) \
|
||||
SYSCALL_ENTRY( NtUserGetClipboardSequenceNumber ) \
|
||||
SYSCALL_ENTRY( NtUserGetClipboardViewer ) \
|
||||
SYSCALL_ENTRY( NtUserGetLayeredWindowAttributes ) \
|
||||
SYSCALL_ENTRY( NtUserGetObjectInformation ) \
|
||||
|
|
|
@ -205,6 +205,11 @@ NTSTATUS WINAPI wow64_NtUserGetClipboardOwner( UINT *args )
|
|||
return HandleToUlong( NtUserGetClipboardOwner() );
|
||||
}
|
||||
|
||||
NTSTATUS WINAPI wow64_NtUserGetClipboardSequenceNumber( UINT *args )
|
||||
{
|
||||
return NtUserGetClipboardSequenceNumber();
|
||||
}
|
||||
|
||||
NTSTATUS WINAPI wow64_NtUserGetClipboardViewer( UINT *args )
|
||||
{
|
||||
return HandleToUlong( NtUserGetClipboardViewer() );
|
||||
|
|
|
@ -33,6 +33,7 @@ HWINSTA WINAPI NtUserCreateWindowStation( OBJECT_ATTRIBUTES *attr, ACCESS_MASK m
|
|||
ULONG arg4, ULONG arg5, ULONG arg6, ULONG arg7 );
|
||||
INT WINAPI NtUserGetClipboardFormatName( UINT format, WCHAR *buffer, INT maxlen );
|
||||
HWND WINAPI NtUserGetClipboardOwner(void);
|
||||
DWORD WINAPI NtUserGetClipboardSequenceNumber(void);
|
||||
HWND WINAPI NtUserGetClipboardViewer(void);
|
||||
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
|
||||
BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
|
||||
|
|
Loading…
Reference in New Issue