Export (0) Print
Expand All

ISpDataKey::GetData (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpDataKey::GetData

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


HRESULT GetData(
   LPCWSTR       *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

ValueDescription
S_OKFunction completed successfully, or pData was NULL. For more information, see Remarks.
E_INVALIDARGpszValueName is invalid or bad.
E_POINTEREither pcbData or pData is an invalid or bad pointer.
SPERR_NOT_FOUNDToken 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.

Show:
© 2014 Microsoft