ISpSREngineSite::GetMaxAlternates

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpSREngineSite::GetMaxAlternates

ISpSREngineSite::GetMaxAlternates passes back the maximum number of alternates that should be generated for the specified CFG rule.

HRESULT GetMaxAlternates(
   SPRULEHANDLE   hRule,
   ULONG         *pulNumAlts
);

Parameters

hRule
[in] The rule to check.
pulNumAlts
[out] The maximum number of alternates for the rule.

Return values

Value Description
S_OK Function completed successfully.
E_POINTER pulNumAlts is invalid or bad.
FAILED (hr) Appropriate error message.