ICreateProcessInputs::SetHotKey method (shobjidl_core.h)
Sets the hot key for the application.
Syntax
HRESULT SetHotKey(
[in] WORD wHotKey
);
Parameters
[in] wHotKey
The hotkey to assign to the application. See the documentation of the hStdIn member of the STARTUPINFO structure for more information.
Return value
S_OK if the method succeeds. Otherwise, an HRESULT error code.
Remarks
This method also sets the STARTF_USEHOTKEY flag in the dwFlags member of the STARTUPINFO structure passed to CreateProcess.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |