Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
SpGetSubTokenFromToken
SpGetSubTokenFromToken creates a subtoken from a token.
Found in: spddkhlp.h
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>SpGetSubTokenFromToken(</strong> <strong> <a runat="server" href="jj127672(v=msdn.10).md">ISpObjectToken</a></strong> *<em>pToken</em>, <strong> const WCHAR</strong> *<em>pszSubKeyName</em>, <strong> <a runat="server" href="jj127672(v=msdn.10).md">ISpObjectToken</a></strong> **<em>ppToken</em>, <strong> BOOL</strong> <em>fCreateIfNotExist</em> = FALSE <strong>);</strong> </pre>
Parameters
- pToken
[in] The object token from which to create the subtoken. If not present, this token will be created if fCreateIfNotExist is TRUE. - pszSubKeyName
[out] The name of the subtoken to use. - ppToken
[in] The newly created subtoken. - fCreateIfNotExist
[in] Optional Boolean indicating that the token is to be created if one does not currently exist. TRUE allows the creation. The default value FALSE does not.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | At least one of the pointers pToken, pszSubKeyName, or ppToken is invalid or bad. |
FAILED (hr) | Appropriate error message. |