ISpSREngineSite::AddEvent (Windows CE 5.0)
This method adds an event to the SR engine site.
HRESULT AddEvent( const SPEVENT* pEvent, SPRECOCONTEXTHANDLE hContext);
Parameters
- pEvent
[in] Pointer to an SPEVENT structure defining the event. - hContext
[in] Handle to the speech recognition context passed to the SR engine through ISpSREngine::OnCreateRecoContext. This context is typically set to NULL to indicate a global event.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | At least one of pEvent or hContext is invalid or bad. Alternatively, this value indicates that an event is being added to an inappropriate mode. |
E_POINTER | Invalid pointer. |
SPERR_STREAM_POS_INVALID | The current audio stream offset is more than either the current seek position or the last sync position. Alternatively, if the event stream is not initialized, the stream position is not zero. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.
See Also
ISpSREngineSite | SAPI Interfaces
Send Feedback on this topic to the authors