ISpPhraseBuilder::AddRules

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpPhraseBuilder::AddRules

ISpPhraseBuilder::AddRules adds phrase rules to the phrase object.

HRESULT AddRules(
  const SPPHRASERULEHANDLE   hParent,
  const SPPHRASERULE        *pRule,
  SPPHRASERULEHANDLE        *phNewRule
);

Parameters

hParent
[in] Handle to the parent phrase rule.
pRule
[in] Address of the SPPHRASERULE structure that contains the phrase rule information.
phNewRule
[out] Address of the handle of SPPHRASERULEHANDLE that contains the new phrase rule information.

Return values

Value Description
S_OK Function completed successfully.
E_POINTER Invalid pointer.
SPERR_UNINITIALIZED The object has not been properly initialized.
FAILED(hr) Appropriate error message.