Microsoft Speech Platform
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. |