Share via


ISpPhraseBuilder::AddReplacements (Windows Embedded CE 6.0)

1/6/2010

This method adds one or more text replacement elements to the phrase being built.

Syntax

HRESULT AddReplacements(
  ULONG cReplacements,
  const SPPHRASEREPLACEMENT* pReplacements
);

Parameters

  • cReplacements
    [in] Number of text replacement elements.
  • pReplacements
    [in] Pointer to an SPPHRASEREPLACEMENT structure that contains the text replacement elements.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

E_INVALIDARG

One or more arguments are invalid.

SPERR_UNINITIALIZED

The object has not been properly initialized.

FAILED(hr)

Appropriate error message.

Requirements

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpPhraseBuilder
SAPI Interfaces