AppendMenu

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

Microsoft documentation: Link

Last updated