The GetMenuContextHelpId function retrieves the help context identifier associated with the specified menu.
DWORD GetMenuContextHelpId(
HMENU hmenu
);
Returns the help context identifier if the menu has one or zero otherwise.
SetMenuContextHelpId