ICreateProcessInputs::SetHotKey method

Sets the hot key for the application.

Syntax


HRESULT SetHotKey(
  [in] WORD wHotKey
);

Parameters

wHotKey [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

CreateProcess
ICreateProcessInputs
ICreatingProcess::OnCreating
STARTUPINFO

 

 

Show: