SetClipboardViewer function Null safety user32

int SetClipboardViewer (
  1. int hWndNewViewer
)

Adds the specified window to the chain of clipboard viewers.

HWND SetClipboardViewer(
  HWND hWndNewViewer
);

Implementation

int SetClipboardViewer(int hWndNewViewer) {
  final _SetClipboardViewer = _user32.lookupFunction<
      IntPtr Function(IntPtr hWndNewViewer),
      int Function(int hWndNewViewer)>('SetClipboardViewer');
  return _SetClipboardViewer(hWndNewViewer);
}