Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 2.93 KB

nf-shobjidl_core-icreateprocessinputs-setenvironmentvariable.md

File metadata and controls

79 lines (61 loc) · 2.93 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shobjidl_core.ICreateProcessInputs.SetEnvironmentVariable
ICreateProcessInputs::SetEnvironmentVariable (shobjidl_core.h)
Sets a variable in the environment of the created process.
ICreateProcessInputs interface [Windows Shell]
SetEnvironmentVariable method
ICreateProcessInputs.SetEnvironmentVariable
ICreateProcessInputs::SetEnvironmentVariable
SetEnvironmentVariable
SetEnvironmentVariable method [Windows Shell]
SetEnvironmentVariable method [Windows Shell]
ICreateProcessInputs interface
shell.icreateprocessinputs_setenvironmentvariable
shobjidl_core/ICreateProcessInputs::SetEnvironmentVariable
shell\icreateprocessinputs_setenvironmentvariable.htm
shell
5898B21B-5D3B-4950-9DB4-5B7FD19C9187
12/05/2018
ICreateProcessInputs interface [Windows Shell],SetEnvironmentVariable method, ICreateProcessInputs.SetEnvironmentVariable, ICreateProcessInputs::SetEnvironmentVariable, SetEnvironmentVariable, SetEnvironmentVariable method [Windows Shell], SetEnvironmentVariable method [Windows Shell],ICreateProcessInputs interface, shell.icreateprocessinputs_setenvironmentvariable, shobjidl_core/ICreateProcessInputs::SetEnvironmentVariable
shobjidl_core.h
Shobjidl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Shobjidl.idl
Windows
19H1
ICreateProcessInputs::SetEnvironmentVariable
shobjidl_core/ICreateProcessInputs::SetEnvironmentVariable
c++
APIRef
kbSyntax
COM
shobjidl_core.h
ICreateProcessInputs.SetEnvironmentVariable

ICreateProcessInputs::SetEnvironmentVariable

-description

Sets a variable in the environment of the created process.

-parameters

-param pszName [in]

A null-terminated string specifying the name of a variable to be set in the environment of the process to be created. This parameter may not be NULL.

-param pszValue [in]

A null-terminated string specifying the value of the variable to be set in the environment of the process to be created. his parameter may not be NULL.

-returns

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

-remarks

If a variable with the same name already exists in the environment of the created process, it is replaced.

-see-also

ICreateProcessInputs

ICreatingProcess::OnCreating