Share via


ISpSRAlternates::Commit (Windows Embedded CE 6.0)

1/6/2010

This method chooses the word probability for the lexicon manager. The word probability allows fine adjustments for the decoder to pick alternate words over current ones.

Syntax

HRESULT Commit(
  SPPHRASEALTREQUEST* pAltRequest,
  SPPHRASEALT* pAlt,
  void** ppvResultExtra,
  ULONG* pcbResultExtra
);

Parameters

  • pAltRequest
    [in] Pointer to an SPPHRASEALTREQUEST structure containing a request for alternate words.
  • pAlt
    [in] Pointer to an SPPHRASEALT structure containing the alternate words.
  • ppvResultExtra
    [out] Address of a pointer to additional information for the alternate words.
  • pcbResultExtra
    [out] Pointer to the size, in bytes, of the information specified by ppvResultExtra.

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

ISpSRAlternates
SAPI Interfaces