Microsoft Speech SDK
SAPI 5.1
ISpObjectTokenEnumBuilder::AddTokensFromDataKey
ISpObjectTokenEnumBuilder::AddTokensFromDataKey adds a new token using specified subkey and CategoryId information.
HRESULT AddTokensFromDataKey(
ISpDataKey *pDataKey,
const WCHAR *pszSubKey,
const WCHAR *pszCategoryId
);
Parameters
- pDataKey
- Address of an ISpDataKey interface that specifies the system registry key from which to create the token.
- pszSubKey
- Address of a null-terminated string containing the system registry subkey name.
- pszCategoryId
- Address of a null-terminated string containing the category identifier information for the system registry subkey.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One or more parameters are invalid. |
SPERR_UNINITIALIZED | The object has not been properly initialized. |
FAILED(hr) | Appropriate error message. |