11.19.1 GetEnvironmentVariable Method

Get the value of an environment variable. Note that this function retrieves the environment variable values as they exist in the current process.

Changing the value of an environment variable after the concerned process has started will not change the value of that variable in the process.

Input Arguments

Name

Type

Mandatory

Description

Name

String (Unicode)

Yes

The name of the environment variable

 

Output Arguments

Name

Type

Mandatory

Description

Found

Boolean

Yes

True if the specified environment variable exists, false otherwise

 

Return Value

The value of the environment variable.