ISpPhraseBuilder::AddRules (SAPI 5.4)
Microsoft Speech API 5.4
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 |
S_OK |
E_POINTER |
SPERR_UNINITIALIZED |
FAILED(hr) |