Share via


ISpObjectToken::GetID (SAPI 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

Value
S_OK
E_POINTER
E_OUTOFMEMORY
SPERR_UNINITIALIZED
FAILED(hr)