Next Topic

Previous Topic

Book Contents

SetValueExpandedString

bool SetValueExpandedString(string sValueName,string sString)

Return values

Non zero if the function is successful; otherwise 0, and a error description can be retrieved by calling GetErrorDescription().

Parameters

  • sValueName - Name of value to write.
  • sString - String to be written to the value.

Remarks

The function works like the normal SetValue function with one exception. The string written can contain unexpanded references to environment variables (for example, "%PATH%").