Export (0) Print
Expand All

ISpSREngineSite::SetRuleClientContext (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

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:
© 2014 Microsoft