Share via


ISpSRAlternates2::CommitText (SAPI 5.3)

Microsoft Speech API 5.3

ISpSRAlternates2::CommitText

ISpSRAlternates2::CommitText is used when an application commits particular text.

  
    HRESULT CommitText(
   ULONG       ulStartElement,
   ULONG       cElements, 
   LPCWSTR     pszCorrectedText,
   DWORD       eCommitFlags
);

Parameters

  • ulStartElement
    The starting element to consider.
  • cElements
    The number of elements to consider.
  • pszCorrectedText
    The corrected text that is to be committed.
  • eCommitFlags
    One or more values from the SPCOMMITFLAGS enumeration.

Return values

Value
S_OK
E_INVALIDARG