Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpDataKey::CreateKey
ISpDataKey::CreateKey creates a new token subkey and returns a new object which supports ISpDataKey for the specified subkey. If the key already exists, the function will open the existing key instead of overwriting it.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT CreateKey(</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 create. - ppSubKey
Address of a pointer to an ISpDataKey interface.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | Either pszSubKeyName or ppKey is invalid or bad. |
FAILED(hr) | Appropriate error message. |