Export (0) Print
Expand All

ISpSREngine::SetProprietaryRuleIdState (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpSREngine::SetProprietaryRuleIdState

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
);

Parameters

pvEngineGrammar
[in] The engine's grammar pointer for this grammar, as returned from a previous call to the OnCreateGrammar method.
dwRuleId
[in] The engine proprietary grammar rule identifier.
NewState
[in] One of the grammar rule states specified in the SPRULESTATE enumeration sequence.

Return values

ValueDescription
S_OKFunction completed successfully.
FAILED(hr)Appropriate error message.
Show:
© 2014 Microsoft