GetSystemMenu function allows the application to access the window menu (also known as the system menu or the control menu) for copying and modifying. It is a simple wrapper around Win32 function.
Handle to the window that will own a copy of the window menu.
Specifies the action to be taken. If this parameter is FALSE, GetSystemMenu returns a handle to the copy of the window menu currently in use. The copy is initially identical to the window menu, but it can be modified. If this parameter is TRUE, GetSystemMenu resets the window menu back to the default state. The previous window menu, if any, is destroyed.