GetMenuItemCount function user32

int GetMenuItemCount(
  1. int hMenu
)

Determines the number of items in the specified menu.

int GetMenuItemCount(
  HMENU hMenu
);

Implementation

int GetMenuItemCount(int hMenu) => _GetMenuItemCount(hMenu);