Microsoft Speech SDK
SAPI 5.1
ISpProperties::GetPropertyString
ISpProperties::GetPropertyString retrieves the string value corresponding to the specified key name.
HRESULT GetPropertyString(
const WCHAR *pName,
WCHAR **ppCoMemValue
);
Parameters
- pName
- [in] Null-terminated string containing the property name. Valid values are listed in the SR Properties section of the SAPI 5.0 SR Properties White Paper.
- ppCoMemValue
- [out] Address to store the pointer to the string value.
The caller must call CoTaskMemFree() to free the string pointer.
Return values
| Value | Description |
|---|---|
| S_OK | Function completed successfully. |
| S_FALSE | SR engine does not support specified property name. |
| E_INVALIDARG | One or more parameters are invalid. |
| E_POINTER | Value pointer is invalid. |
| FAILED(hr) | SR engine returned specific error. |