Helper SpCreateNewToken (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

SpCreateNewToken (by TokenId)

SpCreateNewToken creates a token forcefully.

Found in: sphelper.h

inline HRESULT SpCreateNewToken(
   const WCHAR       *pszTokenId,
   ISpObjectToken   **ppToken
);

Parameters

pszTokenId
[in] The null-terminated string indicating the token IDw.
ppToken
[out] The token being created. It is created with CoCreateInstance and must be manually freed when no longer required.

Return values

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