Compartir a través de


ISpSREngineSite::IsAlternate (Windows CE 5.0)

Send Feedback

This method determines whether one CFG rule is an alternate of the other. As it is not possible to retrieve alternates for CFG rules from different recognition contexts, this method is an easy way for engines to determine if two rules belong to the same context.

HRESULT IsAlternate(  SPRULEHANDLE hPriRule,  SPRULEHANDLE hAltRule);

Parameters

  • hPriRule
    [in] Handle to the primary rule.
  • hAltRule
    [in] Handle to the alternate rule.

Return Values

The following table shows the possible return values.

Value Description
S_OK hAltRule is an alternate of the handle specified by hPriRule.
S_FALSE hAltRule is not an alternate of the handle specified by hPriRule.
FAILED(hr) Appropriate error message.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.

See Also

ISpSREngineSite | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.