ISpDataKey::SetStringValue

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpDataKey::SetStringValue

ISpDataKey::SetStringValue sets the string value information for a specified token.


HRESULT SetStringValue(
   const WCHAR   *pszValueName, 
   const WCHAR   *pszValue
);

Parameters

pszValueName
Address of the null-terminated string specifying the name of the string value. If NULL, the default value of the token is used.
pszValue
Address of a null-terminated string that contains the string value to be set for the specified key.

Return values

Value Description
S_OK Function completed successfully.
E_INVALIDARG Either pszValueName or pszValue is invalid or bad.
FAILED(hr) Appropriate error message.