GetMenuState function Null safety user32

int GetMenuState(
  1. int hMenu,
  2. int uId,
  3. int uFlags

Retrieves the menu flags associated with the specified menu item. If the menu item opens a submenu, this function also returns the number of items in the submenu.

UINT GetMenuState(
  HMENU hMenu,
  UINT  uId,
  UINT  uFlags


int GetMenuState(int hMenu, int uId, int uFlags) =>
    _GetMenuState(hMenu, uId, uFlags);