Commit 92f2d659 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Move NtUserGetPriorityClipboardFormat implementation from user32.

parent daf5664b
......@@ -976,23 +976,3 @@ HANDLE WINAPI GetClipboardData( UINT format )
return 0;
}
}
/**************************************************************************
* GetPriorityClipboardFormat (USER32.@)
*/
INT WINAPI GetPriorityClipboardFormat(UINT *list, INT nCount)
{
int i;
TRACE( "%p %u\n", list, nCount );
if (NtUserCountClipboardFormats() == 0)
return 0;
for (i = 0; i < nCount; i++)
if (NtUserIsClipboardFormatAvailable(list[i]))
return list[i];
return -1;
}
......@@ -358,7 +358,7 @@
@ stdcall GetPhysicalCursorPos(ptr)
@ stdcall GetPointerDevices(ptr ptr)
@ stdcall GetPointerType(long ptr)
@ stdcall GetPriorityClipboardFormat(ptr long)
@ stdcall GetPriorityClipboardFormat(ptr long) NtUserGetPriorityClipboardFormat
@ stdcall GetProcessDefaultLayout(ptr)
@ stdcall GetProcessDpiAwarenessInternal(long ptr)
@ stdcall GetProcessWindowStation() NtUserGetProcessWindowStation
......
......@@ -145,6 +145,25 @@ BOOL WINAPI NtUserGetUpdatedClipboardFormats( UINT *formats, UINT size, UINT *ou
}
/**************************************************************************
* NtUserGetPriorityClipboardFormat (win32u.@)
*/
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count )
{
int i;
TRACE( "%p %u\n", list, count );
if (NtUserCountClipboardFormats() == 0)
return 0;
for (i = 0; i < count; i++)
if (NtUserIsClipboardFormatAvailable( list[i] ))
return list[i];
return -1;
}
/**************************************************************************
* NtUserGetClipboardFormatName (win32u.@)
*/
INT WINAPI NtUserGetClipboardFormatName( UINT format, WCHAR *buffer, INT maxlen )
......
......@@ -1168,6 +1168,7 @@ static struct unix_funcs unix_funcs =
NtGdiUpdateColors,
NtGdiWidenPath,
NtUserCountClipboardFormats,
NtUserGetPriorityClipboardFormat,
NtUserGetUpdatedClipboardFormats,
NtUserIsClipboardFormatAvailable,
......
......@@ -976,7 +976,7 @@
@ stub NtUserGetPointerProprietaryId
@ stub NtUserGetPointerType
@ stub NtUserGetPrecisionTouchPadConfiguration
@ stub NtUserGetPriorityClipboardFormat
@ stdcall NtUserGetPriorityClipboardFormat(ptr long)
@ stub NtUserGetProcessDpiAwarenessContext
@ stub NtUserGetProcessUIContextInformation
@ stdcall -syscall NtUserGetProcessWindowStation()
......
......@@ -195,6 +195,7 @@ struct unix_funcs
BOOL (WINAPI *pNtGdiUpdateColors)( HDC hdc );
BOOL (WINAPI *pNtGdiWidenPath)( HDC hdc );
INT (WINAPI *pNtUserCountClipboardFormats)(void);
INT (WINAPI *pNtUserGetPriorityClipboardFormat)( UINT *list, INT count );
BOOL (WINAPI *pNtUserGetUpdatedClipboardFormats)( UINT *formats, UINT size, UINT *out_size );
BOOL (WINAPI *pNtUserIsClipboardFormatAvailable)( UINT format );
......
......@@ -601,6 +601,11 @@ INT WINAPI NtUserCountClipboardFormats(void)
return unix_funcs->pNtUserCountClipboardFormats();
}
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count )
{
return unix_funcs->pNtUserGetPriorityClipboardFormat( list, count );
}
BOOL WINAPI NtUserGetUpdatedClipboardFormats( UINT *formats, UINT size, UINT *out_size )
{
return unix_funcs->pNtUserGetUpdatedClipboardFormats( formats, size, out_size );
......
......@@ -39,6 +39,7 @@ HWND WINAPI NtUserGetClipboardViewer(void);
BOOL WINAPI NtUserGetLayeredWindowAttributes( HWND hwnd, COLORREF *key, BYTE *alpha, DWORD *flags );
BOOL WINAPI NtUserGetObjectInformation( HANDLE handle, INT index, void *info,
DWORD len, DWORD *needed );
INT WINAPI NtUserGetPriorityClipboardFormat( UINT *list, INT count );
HWINSTA WINAPI NtUserGetProcessWindowStation(void);
HANDLE WINAPI NtUserGetProp( HWND hwnd, const WCHAR *str );
HDESK WINAPI NtUserGetThreadDesktop( DWORD thread );
......
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