GetMenuInfo

[DllImport("user32.dll")]
public static extern bool GetMenuInfo(
   IntPtr hmenu,
   ref MENUINFO lpcmi
);

Microsoft documentation: Link

Last updated