RegisterClipboardFormat function Null safety user32

int RegisterClipboardFormat(
  1. Pointer<Utf16> lpszFormat
)

Registers a new clipboard format. This format can then be used as a valid clipboard format.

UINT RegisterClipboardFormatW(
  LPCWSTR lpszFormat
);

Implementation

int RegisterClipboardFormat(Pointer<Utf16> lpszFormat) {
  final _RegisterClipboardFormat = _user32.lookupFunction<
      Uint32 Function(Pointer<Utf16> lpszFormat),
      int Function(Pointer<Utf16> lpszFormat)>('RegisterClipboardFormatW');
  return _RegisterClipboardFormat(lpszFormat);
}