SetMenuInfo function Null safety user32

int SetMenuInfo (
  1. int hmenu,
  2. Pointer<MENUINFO> lpmi
)

Sets information for a specified menu.

BOOL SetMenuInfo(
  HMENU       hmenu,
  LPCMENUINFO lpmi
);

Implementation

int SetMenuInfo(int hmenu, Pointer<MENUINFO> lpmi) {
  final _SetMenuInfo = _user32.lookupFunction<
      Int32 Function(IntPtr hmenu, Pointer<MENUINFO> lpmi),
      int Function(int hmenu, Pointer<MENUINFO> lpmi)>('SetMenuInfo');
  return _SetMenuInfo(hmenu, lpmi);
}