IShellLink::SetHotkey  1WNVBRI

[Now Supported on Windows NT]

Sets a hot key for a shell link object.

HRESULT STDMETHODCALLTYPE SetHotkey(

    ISHELLLINK FAR *pShlLnk,

 

    WORD wHotkey

 

   );

 

 

Parameters

pShlLnk

Pointer to the IShellLink222Z_K0 interface. In C++, this parameter is implicit.

wHotkey

Hot key. The virtual-key code is in the low-order byte, and the modifier flags are in the high-order byte. The modifier flags can be a combination of the values specified in the description of the IShellLink::GetHotkeyGPSZA4 method.

 

Return Values

Returns NOERROR if successful or an OLE-defined error value otherwise.

Setting a hot key allows the user to activate the object by pressing a particular combination of keys.

See Also

IShellLink, IShellLink::GetHotkey