Expands environment variables in the passed in string.

ExpandEnvironmentStrings(cEnvironmentString)

Parameters

cEnvironmentString

A string that contains one or more environment-variable strings in the form: %variableName%.
For each such reference, the %variableName% portion is replaced with the current value of that environment variable.

Case is ignored when looking up the environment-variable name. If the name is not found, the %variableName% portion is left unexpanded.

Return Value

The expanded environment string.

See Also

Reference

ADesktopArea
ADesktops
ADisplayDevices
AResolutions
AWindowStations
GetLocaleInfoEx
GetSystemDirectory
GetWindowsDirectory
OsEx

Used WinApi functions

ExpandEnvironmentStrings