CommandId[in] Specifies the ID assigned to the user command as a MenuItemEnum constant. Can have values MI_CustomCommand1, … , MI_CustomCommand10.CommandText[in] Specifies the text of the user command.IconPath[in] Specifies the path to the file containing a BMP picture of 16х16 size that will be used as the icon for the command.HotKey[in] Specifies the hot key for the command. The parameter has the same format as the returned value (LRESULT) of the Windows SendMessage function for the HKM_GETHOTKEY message sent. To obtain the hot key value in this format, you should pack the virtual key code of the hot key to the low-order byte of the value, and the key modifier that specifies the keys that define a hot key combination to the high-order byte. If you do not need to use a hot key for the command, pass 0 to this parameter. If another command uses this hot key, an error is returned. You can check availability of a hot key using the ICommands::HasHotKey method.