IASShellMenu::get_HotKey

This method gets the hot key associated with a shell menu item.

Syntax

HRESULT get_HotKey( long index unsigned char *pbID );

Parameters

index
Index of the item.
pbID
Pointer to the hot key code identifier. The value of the identifier is between 0 and 255.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that an invalid argument has been entered.

Remarks

Hot keys are numbers, entered through the keypad, that provide a direct link to a menu item. If a hot key is detected, focus is set to that menu item, and a WM_COMMAND is fired to the event sink.

See Also

IASShellMenu::put_HotKey