ISpObjectToken::GetID (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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

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.