ISpSREngineSite::AddEvent (SAPI 5.3)
Microsoft Speech API 5.3
ISpSREngineSite::AddEvent
ISpSREngineSite::AddEvent sends an event back from the engine to applications.
For more details on this method and the different events that can be fired, see the SR Engine Guide.
HRESULT AddEvent(
const SPEVENT *pEvent,
SPRECOCONTEXTHANDLE hContext
);
Parameters
- pEvent
[in] Address of the SPEVENT structure containing the event information. - hContext
[in] The RecoContext is the event handle passed to SR engine from SAPI through ISpSREngine::OnCreateRecoContext. This value should normally be set to NULL indicating the event is a global one.
Return values
Value |
S_OK |
E_INVALIDARG |
E_POINTER |
SPERR_STREAM_POS_INVALID |
FAILED(hr) |