ISpObjectTokenCategory::SetDefaultTokenId (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpObjectTokenCategory::SetDefaultTokenId

ISpObjectTokenCategory::SetDefaultTokenId sets a specific token ID as the default for the category.

HRESULT SetDefaultTokenId(
   LPCWSTR    *pszTokenId
);

Parameters

pszTokenId
[in] The null-terminated string name of the token ID to be used as the default.

Return values

ValueDescription
S_OKFunction completed successfully.
SPERR_UNINITIALIZEDData key interface is not initialized.
E_INVALIDARGpszTokenId is invalid or bad.
FAILED(hr)Appropriate error message.

Remarks

The defaults are stored either directly in the category by setting the DefaultTokenID value in the category data key, or indirectly by the DefaultTokenIDLocation. Default tokens are discussed in Object Tokens and Registry Settings White Paper.


Show: