Share via


ISpSREngineSite::GetContextMaxAlternates (Windows Embedded CE 6.0)

1/6/2010

This method gets the maximum number of alternates that should be generated for the specified recognition context. This method currently applies to command and control and proprietary grammars, but not to dictation grammars. For SAPI command and control grammars, it is usually easier to use the ISpSREngineSite::GetMaxAlternates method.

Syntax

HRESULT GetContextMaxAlternates(
  SPRECOCONTEXTHANDLE hContext,
  ULONG* pulNumAlts
);

Parameters

  • hContext
    [in] Handle to the speech recognition context.
  • pulNumAlts
    [out] Pointer to the maximum number of alternates to generate.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

E_POINTER

pulNumAlts is invalid or bad.

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

ISpSREngineSite
SAPI Interfaces