ISpDataKey::GetData

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpDataKey::GetData

ISpDataKey::GetData retrieves the binary data for a token.


HRESULT GetData(
   const WCHAR   *pszValueName, 
   ULONG         *pcbData, 
   BYTE          *pData
);

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.
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.