Share via


ISpSREngine::SetProprietaryRuleIdState

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method sets the state of the identifier for a proprietary grammar rule. It is used to start or stop rules in nonstandard proprietary grammars, for which each rule is represented by an identifier.

Syntax

HRESULT SetProprietaryRuleIdState(
  void* pvEngineGrammar, 
  DWORD dwRuleId,
  SPRULESTATE NewState
);

Parameters

  • dwRuleId
    [in] Identifier for the proprietary grammar rule.
  • NewState
    [in] Grammar rule state. Possible values are defined for the SPRULESTATE enumeration.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

FAILED(hr)

Appropriate error message.

Requirements

Header sapiddk.h, sapiddk.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpSREngine
SAPI Interfaces