Microsoft Speech SDK
SAPI 5.1
ISpPhraseBuilder::AddProperties
ISpPhraseBuilder::AddProperties adds property entries to the phrase object.
HRESULT AddProperties(
const SPPHRASEPROPERTYHANDLE hParent,
const SPPHRASEPROPERTY *pProperty,
SPPHRASEPROPERTYHANDLE *phNewProperty
);
Parameters
- hParent
- [in] Handle to the parent phrase element.
- pProperty
- [in] Address of the SPPHRASEPROPERTY structure that contains the property information.
- phNewProperty
- [out] Address of the handle of SPPHRASEPROPERTY that contains the new property information.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | One or more parameters are invalid. |
E_POINTER | Invalid pointer. |
SPERR_UNINITIALIZED | The object has not been properly initialized. |
SPERR_ALREADY_INITIALIZED | The object has already been initialized. |
FAILED(hr) | Appropriate error message. |