I’m using Florian’s wrapper class to call GetSystemMenu() to add a custom menu item to the system menu for an application.
I’m just curious as to whether there is any cleanup required for the handle returned by calling GetSystemMenu or the additional menu items. I don’t see any mention of needing to call CloseHandle() or similar, so my current assumption is that this is not needed.
You shouldn’t have to worry about it.
Check the MSDN docs for DestroyMenu:
In general, Windows should destroy the menu when your form is closed, which in turn will destroy your custom menu items.