Note

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

Microsoft Speech Platform

ISpDataKey::OpenKey

ISpDataKey::OpenKey opens a specified token subkey. Passes back a new object that supports ISpDataKey for the specified subkey.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT OpenKey(</strong> <strong> LPCWSTR </strong> *<em>pszSubKeyName</em>, <a runat="server" href="jj127605(v=msdn.10).md"><strong>ISpDataKey</strong></a> **<em>ppSubKey</em> <strong>);</strong> </pre>

Parameters

  • pszSubKeyName
    Address of a null-terminated string specifying the name of the key to open.
  • ppSubKey
    Address of a pointer to an ISpDataKey interface.

Return Values

Value Description
S_OK Function completed successfully.
E_INVALIDARG pszSubKeyName is invalid or bad.
E_POINTER ppSubKey is invalid or bad.
SPERR_NOT_FOUND Registry key not found.
FAILED(hr) Appropriate error message.