Export (0) Print
Expand All

ISpObjectToken::GetID (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpObjectToken::GetId

ISpObjectToken::GetId retrieves the object identifier for an object token. This identifier can be used later to recreate a token instance.


HRESULT GetId(
   LPWSTR    **ppszCoMemTokenId
);

Parameters

ppszCoMemTokenId
Address of a pointer to a null-terminated string that receives the identifier for the token object. The caller must call CoTaskMemFree() to free the string pointer.

Return values

ValueDescription
S_OKFunction completed successfully.
E_POINTERppszCoMemTokenId is invalid or bad.
E_OUTOFMEMORYExceeded available memory.
SPERR_UNINITIALIZEDTokenId interface is not initialized.
FAILED(hr)Appropriate error message.
Show:
© 2015 Microsoft