GetClipboardData function Null safety user32

int GetClipboardData (
  1. int uFormat
)

Retrieves data from the clipboard in a specified format. The clipboard must have been opened previously.

HANDLE GetClipboardData(
  UINT uFormat
);

Implementation

int GetClipboardData(int uFormat) {
  final _GetClipboardData = _user32.lookupFunction<
      IntPtr Function(Uint32 uFormat),
      int Function(int uFormat)>('GetClipboardData');
  return _GetClipboardData(uFormat);
}