Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpDataKey::GetData
ISpDataKey::GetData retrieves the binary data for a token.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetData(</strong> <strong> LPCWSTR </strong> *<em>pszValueName</em>, <strong> ULONG </strong> *<em>pcbData</em>, <strong> BYTE </strong> *<em>pData</em> <strong>);</strong> </pre>
Parameters
- pszValueName
Address of a null-terminated string containing the name of the registry key from which to retrieve the registry key value. - pcbData
[in] Size of the pData parameter. - pData
[out] Pointer to the buffer receiving the information.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully, or pData was NULL. For more information, see Remarks. |
E_INVALIDARG | pszValueName is invalid or bad. |
E_POINTER | Either pcbData or pData is an invalid or bad pointer. |
SPERR_NOT_FOUND | Token key not found. |
FAILED(hr) | Appropriate error message. |
Remarks
If GetData is called with NULL for pData it returns S_OK and the size of the required buffer in *pcbData.