GetSystemMenu function Null safety user32

int GetSystemMenu(
  1. int hWnd,
  2. int bRevert
)

Enables the application to access the window menu (also known as the system menu or the control menu) for copying and modifying.

HMENU GetSystemMenu(
  HWND hWnd,
  BOOL bRevert
);

Implementation

int GetSystemMenu(int hWnd, int bRevert) {
  final _GetSystemMenu = _user32.lookupFunction<
      IntPtr Function(IntPtr hWnd, Int32 bRevert),
      int Function(int hWnd, int bRevert)>('GetSystemMenu');
  return _GetSystemMenu(hWnd, bRevert);
}