ChangeClipboardChain function Null safety user32

int ChangeClipboardChain (
  1. int hWndRemove,
  2. int hWndNewNext
)

Removes a specified window from the chain of clipboard viewers.

BOOL ChangeClipboardChain(
  HWND hWndRemove,
  HWND hWndNewNext
  );

Implementation

int ChangeClipboardChain(int hWndRemove, int hWndNewNext) {
  final _ChangeClipboardChain = _user32.lookupFunction<
      Int32 Function(IntPtr hWndRemove, IntPtr hWndNewNext),
      int Function(int hWndRemove, int hWndNewNext)>('ChangeClipboardChain');
  return _ChangeClipboardChain(hWndRemove, hWndNewNext);
}