ISpSREngine::SetProprietaryRuleIdState (SAPI 5.3)
Speech API 5.3
ISpSREngine::SetProprietaryRuleIdState sets the proprietary grammar rule ID state. This is used to activate or deactivate rules in non-standard proprietary grammars where each rule is identified by an ID.
HRESULT SetProprietaryRuleIdState( void *pvEngineGrammar, DWORD dwRuleId, SPRULESTATE NewState );
- [in] The engine's grammar pointer for this grammar, as returned from a previous call to the OnCreateGrammar method.
- [in] The engine proprietary grammar rule identifier.
- [in] One of the grammar rule states specified in the SPRULESTATE enumeration sequence.
|S_OK||Function completed successfully.|
|FAILED(hr)||Appropriate error message.|