Speech API Overview Developer Support Application-Level Interfaces Engine-Level Interfaces Structures Enumerations Helper Functions SAPI Object Classes Error Codes Miscellanea SDK Samples, Tools, and Tutorials White Papers Automation

Helper SpGetDefaultTokenFromCategoryId (SAPI 5.3)

Microsoft Speech API 5.3

SpGetDefaultTokenFromCategoryId

SpGetDefaultTokenFromCategoryId gets the default token for the specified category ID.

Found in: sphelper.h

inline HRESULT SpGetDefaultTokenFromCategoryId(
   const WCHAR       *pszCategoryId,
   ISpObjectToken   **ppToken,
   BOOL              *fCreateCategoryIfNotExist = TRUE
);

Parameters

pszCategoryId
[in] The null-terminated string for the category ID.
ppToken
[out] The default token for the category ID.
fCreateCategoryIfNotExist
[in] An optional parameter allowing the category to be created if one does not currently exist. By default, the value is TRUE unless otherwise indicated.

Return values

Value Description
S_OK Function completed successfully.
FAILED (hr) Appropriate error message.

©Microsoft Corporation. All rights reserved.