Share via


ISpSREngine2::SetRuleWeight (SAPI 5.3)

Microsoft Speech API 5.3

ISpSREngine2::SetRuleWeight

ISpSREngine2::SetRuleWeight sets the weight of a rule in a CFG.

  
    HRESULT SetRuleWeight(
   SPRULEHANDLE    hRule,
   void           *pvClientRuleContext,
   float           flWeight
);

Parameters

  • hRule
    The handle to the rule.
  • pvClientRuleContext
    Pointer to the engine's data associated with the rule.
  • flWeight
    The weight.

Return values

Value
S_OK
E_NOINTERFACE