Next Topic

Previous Topic

Book Contents

ReadValue

string ReadValue(string sValueName,int &iSize)

Return values

Data stored in the registry value, if the function fails an empty string is returned. A error description can be retrieved by calling GetErrorDescription().

Parameters

  • sValueName - Name of value to retrieve.
  • iSize - Size of data returned by the function, in bytes.

Remarks

The function returns the data of the value with the specified name. If the value type is not a integer this function will fail. The size of the data returned is stored in the iSize parameter. If this function fails the iSize parameter is set to zero.