EnableWindow function Null safety user32

int EnableWindow(
  1. int hWnd,
  2. int bEnable
)

Enables or disables mouse and keyboard input to the specified window or control. When input is disabled, the window does not receive input such as mouse clicks and key presses. When input is enabled, the window receives all input.

BOOL EnableWindow(
  HWND hWnd,
  BOOL bEnable
);

Implementation

int EnableWindow(int hWnd, int bEnable) {
  final _EnableWindow = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Int32 bEnable),
      int Function(int hWnd, int bEnable)>('EnableWindow');
  return _EnableWindow(hWnd, bEnable);
}