Export (0) Print
Expand All

ISpSREngineSite::SetWordClientContext (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpSREngineSite::SetWordClientContext

ISpSREngineSite::SetWordClientContext sets an engine-defined context pointer on a CFG word.

This allows an engine to associate a pointer to its own data with each word. This can be quickly recovered with the ISpSREngineSite::GetWordInfo method.

HRESULT SetWordClientContext(
   SPWORDHANDLE   hWord,
   void          *pvClientContext
);

Parameters

hWord
[in] The handle for a word.
pvClientContext
[in] Pointer to the engine's data it wishes to associate with this word.

Return values

ValueDescription
S_OKFunction completed successfully.
SPERR_INVALID_HANDLEInvalid word handle parameter.
FAILED (hr)Other appropriate error message.
Show:
© 2014 Microsoft