Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ISpSREngineSite::SetRuleClientContext (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpSREngineSite::SetRuleClientContext

ISpSREngineSite::SetRuleClientContext sets an engine-defined pointer on a CFG rule.

This allows an engine to associate a pointer to its own data with each rule. This can be quickly recovered with ISpSREngineSite::GetRuleInfo.

HRESULT SetRuleClientContext(
   SPRULEHANDLE   hRule,
   void          *pvClientContext
);

Parameters

hRule
[in] Handle of a rule.
pvClientContext
[in] Pointer to the engine's data it wishes to associate with this rule.

Return values

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