This method gets the identifier of a menu item, specified by its index.
HRESULT get_ID( long index short *pwID );
NOERROR indicates success. E_INVALIDARG indicates that the argument is invalid.
The index is based on the order in which the menu items are displayed. The identifier is assigned by the user when the item is added to the menu.