LockWindowUpdate function Null safety user32

int LockWindowUpdate (
  1. int hWndLock
)

The LockWindowUpdate function disables or enables drawing in the specified window. Only one window can be locked at a time.

BOOL LockWindowUpdate(
  HWND hWndLock
);

Implementation

int LockWindowUpdate(int hWndLock) {
  final _LockWindowUpdate = _user32.lookupFunction<
      Int32 Function(IntPtr hWndLock),
      int Function(int hWndLock)>('LockWindowUpdate');
  return _LockWindowUpdate(hWndLock);
}