You are reading help file online using chmlib.com
|
ISpSREngineSite::GetRuleInfo retrieves information about a CFG rule.
HRESULT GetRuleInfo(
SPRULEENTRY *pRuleEntry,
SPRULEINFOOPT Options
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | pRuleEntry points to invalid memory. |
E_INVALIDARG | Either invalid hRule rule handle or Options contains invalid flags. |
FAILED (hr) | Appropriate error message. |
This method can be called after the engine has been informed of a rule with the ISpSREngine::RuleNotify method. This method can be used to recover rule information from the rule handle. Only the hRule rule handle field in the SPRULEENTRY needs to be filled in by the engine when calling this method. The engine will fill in:
SPAudioBufferInfo.ulMsMinNotification cannot be larger than one quarter the size of SPAudioBufferInfo.ulMsBufferSize and must not be zero. |
SPRAF_TopLevel if the rule is top-level and thus can be activated for recognition. |
SPRAF_Interpreter if the rule is associated with an Interpreter object for semantic processing. |
SPRAF_AutoPause if the rule is auto-pause. |
You are reading help file online using chmlib.com
|