mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 10:07:02 +00:00
win32u: Move NtUserGetPriorityClipboardFormat 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
daf5664b0a
commit
92f2d659f5
|
@ -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
|
||||
|
|
|
@ -144,6 +144,25 @@ BOOL WINAPI NtUserGetUpdatedClipboardFormats( UINT *formats, UINT size, UINT *ou
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* 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.@)
|
||||
*/
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue