ISpObjectToken::GetID

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

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(
   WCHAR   **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

Value Description
S_OK Function completed successfully.
E_POINTER ppszCoMemTokenId is invalid or bad.
E_OUTOFMEMORY Exceeded available memory.
SPERR_UNINITIALIZED TokenId interface is not initialized.
FAILED(hr) Appropriate error message.