Helper SpCreateNewToken

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

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.