The SetExpandString method sets or modifies 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.
| BOOL SetExpandString( | ||
| BSTR Name, | // The name of the ExpandString variable | |
| BSTR Value | // The value to be set | |
| ); | ||
Parameters
Name [in] This is the name of ExpandString variable whose value should be changed. Value [in] This is the value that should be set.
Return values
The SetExpandString method returns TRUE if the value is successfully set and FALSE otherwise.
See also
GetExpandString method