InsertMenu

[DllImport("user32.dll", SetLastError = true)]
public static extern bool InsertMenu(
   IntPtr hMenu,
   uint uPosition,
   uint uFlags,
   uint uIDNewItem,
   string lpNewItem
);

Microsoft documentation: Link

Last updated