Freigeben über


ISpObjectWithToken (Windows CE 5.0)

Send Feedback

This interface represents any object that is associated with an object token. SAPI creates the associated object when ISpObjectToken::CreateInstance is called on the object token. If this object implements ISpObjectWithToken then the SetObjectToken method will be called, passing in a reference to the object token. This allows an object to find out which object token is creating it, and to get or set data in the object token.

Applications do not need to implement this interface. A TTS or SR engine, custom audio device or lexicon, or any other object that is being created from an object token may want to implement this interface to get access to the associated object token.

When to Implement

The following classes implement this interface currently in SAPI. The TTS and SR engines shipped with SAPI 5.0 also implement this interface.

SpMMAudioEnum

SpUnCompressedLexicon

SpCompressedLexicon

Methods

This table lists methods for the ISpObjectWithToken interface.

Methods Description
GetObjectToken Gets an object token.
SetObjectToken Binds the instance object to the specified token.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: sapi.h, sapi.idl.
Link Library: Sapilib.lib.

See Also

SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.