ApplyIISEnvironmentVariables

Injects dynamic environment variables into the current process that would otherwise have been injected into a running worker process.

    HRESULT
    ApplyIISEnvironmentVariables();

Return Value

HRESULT

Remarks

Examples of environment variables that this method can inject include %IIS_BIN% and %IIS_USER_HOME. This function can be useful if you are trying to process an IIS Express configuration file and must resolve an environment variable that has been declared within the file.

See Also

Reference

GetPropertyValue

CreateObjectFromProgId

CreateObjectFromCLSID

ClearIISEnvironmentVariables

ApplyManifestContext

ClearManifestContext