GetUpdatedClipboardFormats function Null safety user32

int GetUpdatedClipboardFormats(
  1. Pointer<Uint32> lpuiFormats,
  2. int cFormats,
  3. Pointer<Uint32> pcFormatsOut
)

Retrieves the currently supported clipboard formats.

BOOL GetUpdatedClipboardFormats(
  PUINT lpuiFormats,
  UINT  cFormats,
  PUINT pcFormatsOut
);

Implementation

int GetUpdatedClipboardFormats(
    Pointer<Uint32> lpuiFormats, int cFormats, Pointer<Uint32> pcFormatsOut) {
  final _GetUpdatedClipboardFormats = _user32.lookupFunction<
      Int32 Function(Pointer<Uint32> lpuiFormats, Uint32 cFormats,
          Pointer<Uint32> pcFormatsOut),
      int Function(Pointer<Uint32> lpuiFormats, int cFormats,
          Pointer<Uint32> pcFormatsOut)>('GetUpdatedClipboardFormats');
  return _GetUpdatedClipboardFormats(lpuiFormats, cFormats, pcFormatsOut);
}