GetPriorityClipboardFormat function Null safety user32

int GetPriorityClipboardFormat(
  1. Pointer<Uint32> paFormatPriorityList,
  2. int cFormats
)

Retrieves the first available clipboard format in the specified list.

int GetPriorityClipboardFormat(
  UINT *paFormatPriorityList,
  int  cFormats
);

Implementation

int GetPriorityClipboardFormat(
    Pointer<Uint32> paFormatPriorityList, int cFormats) {
  final _GetPriorityClipboardFormat = _user32.lookupFunction<
      Int32 Function(Pointer<Uint32> paFormatPriorityList, Int32 cFormats),
      int Function(Pointer<Uint32> paFormatPriorityList,
          int cFormats)>('GetPriorityClipboardFormat');
  return _GetPriorityClipboardFormat(paFormatPriorityList, cFormats);
}