Group: Clipboard - Library: user32
The GetPriorityClipboardFormat function retrieves the first available clipboard format in the specified list.
Number of clipboard formats available
int GetPriorityClipboardFormat(
UINT* paFormatPriorityList,
int cFormats
);
DECLARE INTEGER GetPriorityClipboardFormat IN user32;
STRING @ paFormatPriorityList,;
INTEGER cFormats
paFormatPriorityList [in] Pointer to an array of unsigned integers identifying clipboard formats, in priority order.
cFormats [in] Specifies the number of entries in the paFormatPriorityList array.
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.