OpenClipboard function Null safety user32

int OpenClipboard (
  1. int hWndNewOwner
)

Opens the clipboard for examination and prevents other applications from modifying the clipboard content.

BOOL OpenClipboard(
  HWND hWndNewOwner
);

Implementation

int OpenClipboard(int hWndNewOwner) {
  final _OpenClipboard = _user32.lookupFunction<
      Int32 Function(IntPtr hWndNewOwner),
      int Function(int hWndNewOwner)>('OpenClipboard');
  return _OpenClipboard(hWndNewOwner);
}