ISpPhraseBuilder::AddRules (Windows Embedded CE 6.0)
1/6/2010
This method adds phrase rules to the phrase being built.
Syntax
HRESULT AddRules(
const SPPHRASERULEHANDLE hParent,
const SPPHRASERULE* pRule,
SPPHRASERULEHANDLE* phNewRule
);
Parameters
- hParent
[in] Handle to the parent phrase rule.
- pRule
[in] Pointer to an SPPHRASERULE structure that contains the phrase rules to add.
- phNewRule
[out] Pointer to a handle to the SPPHRASERULE structure that contains the new phrase rules.
Return Value
The following table shows the possible 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. |
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |