GetExpandString method

GetExpandString   The GetExpandString method returns the ExpandString variable.  

BSTR GetExpandString(
 BSTR Name// The name of the variable

  Name     [in] This is the name of the variable whose value should be obtained.
Return values
  he GetExpandString method returns the value of ExpandString type variable which is a null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). The ExpandString will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. In case the specified variable (passed as the parameter to this method) doesn’t exist, this method will return empty string.

See also
SetExpandString method, GetString method