ICreateProcessInputs::SetCreateFlags method

Set the flags that will be included in the call to CreateProcess.

Syntax


HRESULT SetCreateFlags(
  [in] DWORD dwCreationFlags
);

Parameters

dwCreationFlags [in]

The flags that will be passed to the dwCreationFlags parameter to CreateProcess.

Return value

S_OK if the method succeeds. Otherwise, an HRESULT error code.

Remarks

Any flags set by a previous call to AddCreateFlags or SetCreateFlags will be replaced by the values specified by dwCreationFlags. Use AddCreateFlags to set flags without clearing flags that are already set.

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

AddCreateFlags
CreateProcess
ICreateProcessInputs
ICreatingProcess::OnCreating
STARTUPINFO

 

 

Show: