Microsoft Speech SDK
SAPI 5.1
ISpCFGInterpreterSite::GetResourceValue
ISpCFGInterpreterSite::GetResourceValue retrieves the resource information for a grammar.
HRESULT GetResourceValue(
const WCHAR *pszResourceName,
WCHAR **ppCoMemResource
);
Parameters
- pszResourceName
- [in] The name of the resource from which to retrieve the grammar information.
- ppCoMemResource
- [out] Pointer containing the passed back resource value.
Applications implementing this method must call CoTaskMemFree() to free memory associated with this resource.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One of the parameters is bad or invalid. |
E_OUTOFMEMORY | Exceeded available memory. |
FAILED(hr) | Appropriate error message. |