[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 IShellLink 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::GetHotkey 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