int = GetPriorityClipboardFormat(formats)

Returns the first available clipboard format in the specified list.


formats : sequence

Sequence of integers identifying clipboard formats, in priority order. For a description of the standard clipboard formats, see Standard Clipboard Formats.

Win32 API References

Search for GetPriorityClipboardFormat at msdn, google or google groups.

Search for Standard Clipboard Formats at msdn, google or google groups.

Return Value

If the function succeeds, the return value is the first clipboard format in the list for which data is available. If the clipboard is empty, the return value is NULL. If the clipboard contains data, but not in any of the specified formats, the return value is -1.