ISpPhraseBuilder::AddElements

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpPhraseBuilder::AddElements

ISpPhraseBuilder::AddElements adds a copy of the given element to the end of this object's element list.

HRESULT AddElements(
   ULONG                    cElements,
   const SPPHRASEELEMENT   *pElement
);

Parameters

cElements
Specifies the number of phrase elements to add.
pElement
Address of the SPPHRASEELEMENT data structure containing the phrase element to add.

Return values

Value Description
S_OK Function completed successfully.
E_INVALIDARG One or more parameters are invalid.
SPERR_UNINITIALIZED The object has not been properly initialized.
FAILED(hr) Appropriate error message.