win32u: Move EnumClipboardFormats 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
357d8654c9
commit
ea9fb81c09
|
@ -764,21 +764,7 @@ done:
|
|||
*/
|
||||
UINT WINAPI EnumClipboardFormats( UINT format )
|
||||
{
|
||||
UINT ret = 0;
|
||||
|
||||
SERVER_START_REQ( enum_clipboard_formats )
|
||||
{
|
||||
req->previous = format;
|
||||
if (!wine_server_call_err( req ))
|
||||
{
|
||||
ret = reply->format;
|
||||
SetLastError( ERROR_SUCCESS );
|
||||
}
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
|
||||
TRACE( "%s -> %s\n", debugstr_format( format ), debugstr_format( ret ));
|
||||
return ret;
|
||||
return NtUserEnumClipboardFormats( format );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -334,6 +334,26 @@ DWORD WINAPI NtUserGetClipboardSequenceNumber(void)
|
|||
return seqno;
|
||||
}
|
||||
|
||||
/* see EnumClipboardFormats */
|
||||
UINT enum_clipboard_formats( UINT format )
|
||||
{
|
||||
UINT ret = 0;
|
||||
|
||||
SERVER_START_REQ( enum_clipboard_formats )
|
||||
{
|
||||
req->previous = format;
|
||||
if (!wine_server_call_err( req ))
|
||||
{
|
||||
ret = reply->format;
|
||||
SetLastError( ERROR_SUCCESS );
|
||||
}
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
|
||||
TRACE( "%s -> %s\n", debugstr_format( format ), debugstr_format( ret ));
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* NtUserAddClipboardFormatListener (win32u.@)
|
||||
*/
|
||||
|
|
|
@ -4707,6 +4707,9 @@ ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code )
|
|||
enable_thunk_lock = arg;
|
||||
return 0;
|
||||
|
||||
case NtUserCallOneParam_EnumClipboardFormats:
|
||||
return enum_clipboard_formats( arg );
|
||||
|
||||
case NtUserCallOneParam_GetClipCursor:
|
||||
return get_clip_cursor( (RECT *)arg );
|
||||
|
||||
|
|
|
@ -313,6 +313,7 @@ struct unix_funcs
|
|||
};
|
||||
|
||||
/* clipboard.c */
|
||||
extern UINT enum_clipboard_formats( UINT format ) DECLSPEC_HIDDEN;
|
||||
extern void release_clipboard_owner( HWND hwnd ) DECLSPEC_HIDDEN;
|
||||
|
||||
/* cursoricon.c */
|
||||
|
|
|
@ -637,6 +637,7 @@ enum
|
|||
NtUserCallOneParam_DispatchMessageA,
|
||||
NtUserCallOneParam_EnableDC,
|
||||
NtUserCallOneParam_EnableThunkLock,
|
||||
NtUserCallOneParam_EnumClipboardFormats,
|
||||
NtUserCallOneParam_GetClipCursor,
|
||||
NtUserCallOneParam_GetCursorPos,
|
||||
NtUserCallOneParam_GetIconParam,
|
||||
|
@ -688,6 +689,11 @@ static inline void NtUserEnableThunkLock( BOOL enable )
|
|||
NtUserCallOneParam( enable, NtUserCallOneParam_EnableThunkLock );
|
||||
}
|
||||
|
||||
static inline UINT NtUserEnumClipboardFormats( UINT format )
|
||||
{
|
||||
return NtUserCallOneParam( format, NtUserCallOneParam_EnumClipboardFormats );
|
||||
}
|
||||
|
||||
static inline BOOL NtUserGetClipCursor( RECT *rect )
|
||||
{
|
||||
return NtUserCallOneParam( (UINT_PTR)rect, NtUserCallOneParam_GetClipCursor );
|
||||
|
|
Loading…
Reference in New Issue