get_priority_clipboard_format


int get_priority_clipboard_format(unsigned* list,
                                  int formats)

This function obtains the first clipboard format in a specified list.

Parameters

unsigned* list

An ordered array of integers with a single format per integer.

int formats

The number of formats contained in the list pointed to by the previous parameter.

Return

int

-1 The clipboard contains data, but not in a format that matches any of the specified formats.
0 The clipboard contains no data of any format.
Other The first format contained in the ordered list that has associated clipboard data.

Notes

The specified formats may be built-in or may be application defined.