Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

ISpDataKey::SetData

ISpDataKey::SetData sets the binary data for a token.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetData(</strong> <strong> LPCWSTR </strong> *<em>pszValueName</em>, <strong> ULONG</strong> <em>cbData</em>, <strong> const BYTE </strong> *<em>pData</em> <strong>);</strong> </pre>

Parameters

  • pszValueName
    [in] Address of a null-terminated string that contains the registry key value name.
  • cbData
    [in] Size of the pData parameter.
  • pData
    [out] Pointer to the buffer containing the information.

Return Values

Value Description
S_OK Function completed successfully.
E_INVALIDARG Either pszValueName or pData is an invalid or bad pointer.
FAILED(hr) Appropriate error message.