GetMenu (user32)
Last changed: NetMage-165.214.11.83

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern IntPtr GetMenu(IntPtr hWnd);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

[C#]

(this.Handle points to the Form (window application project))

int Menu2 = GetMenu(this.Handle.ToInt32());

AppendMenu(Menu2,0xA00,0,null); // makes a separator

AppendMenu(Menu2,0,777,"Pinvoke Rules!");

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
GetMenu on MSDN