MSP_EVENT_INFO structure (msp.h)

The MSP_EVENT_INFO structure defines the type of event returned by the GetEvent method.

Syntax

typedef struct __MIDL___MIDL_itf_msp_0000_0000_0005 {
  DWORD      dwSize;
  MSP_EVENT  Event;
  MSP_HANDLE hCall;
  union {
    struct {
      MSP_ADDRESS_EVENT Type;
      ITTerminal        *pTerminal;
    } MSP_ADDRESS_EVENT_INFO;
    struct {
      MSP_CALL_EVENT       Type;
      MSP_CALL_EVENT_CAUSE Cause;
      ITStream             *pStream;
      ITTerminal           *pTerminal;
      HRESULT              hrError;
    } MSP_CALL_EVENT_INFO;
    struct {
      DWORD dwBufferSize;
      BYTE  pBuffer[1];
    } MSP_TSP_DATA;
    struct {
      IDispatch *pEvent;
      long      lEventCode;
    } MSP_PRIVATE_EVENT_INFO;
    struct {
      ITTerminal           *pParentFileTerminal;
      ITFileTrack          *pFileTrack;
      TERMINAL_MEDIA_STATE TerminalMediaState;
      FT_STATE_EVENT_CAUSE ftecEventCause;
      HRESULT              hrErrorCode;
    } MSP_FILE_TERMINAL_EVENT_INFO;
    struct {
      ITTerminal *pASRTerminal;
      HRESULT    hrErrorCode;
    } MSP_ASR_TERMINAL_EVENT_INFO;
    struct {
      ITTerminal *pTTSTerminal;
      HRESULT    hrErrorCode;
    } MSP_TTS_TERMINAL_EVENT_INFO;
    struct {
      ITTerminal *pToneTerminal;
      HRESULT    hrErrorCode;
    } MSP_TONE_TERMINAL_EVENT_INFO;
  };
} MSP_EVENT_INFO;

Members

dwSize

Total size of structure returned.

Event

hCall

MSP handle; may be NULL.

MSP_ADDRESS_EVENT_INFO

Struct returned if MSP event is ME_ADDRESS_EVENT.

MSP_ADDRESS_EVENT_INFO.Type

Describes the msp address event of the event that has occurred.

MSP_ADDRESS_EVENT_INFO.pTerminal

Pointer to ITTerminal interface.

MSP_CALL_EVENT_INFO

Struct returned if MSP event is ME_CALL_EVENT.

MSP_CALL_EVENT_INFO.Type

Indicates type of MSP_CALL_EVENT that has occurred.

MSP_CALL_EVENT_INFO.Cause

MSP_CALL_EVENT_INFO.pStream

Pointer to ITStream interface on which event occurred.

MSP_CALL_EVENT_INFO.pTerminal

Pointer to ITTerminal interface on which event occurred.

MSP_CALL_EVENT_INFO.hrError

Indicates error, if one has happened.

MSP_TSP_DATA

Struct returned if MSP event is ME_TSP_DATA.

MSP_TSP_DATA.dwBufferSize

Size of buffer returned.

Buffer size, in bytes.

MSP_TSP_DATA.pBuffer[1]

Pointer to buffer.

MSP_PRIVATE_EVENT_INFO

Struct returned if MSP event is ME_PRIVATE_EVENT.

MSP_PRIVATE_EVENT_INFO.pEvent

MSP event.

pEvent.pEvent

Pointer to IDispatch interface of private object on which event has occurred.

MSP_PRIVATE_EVENT_INFO.lEventCode

MSP_FILE_TERMINAL_EVENT_INFO

MSP_FILE_TERMINAL_EVENT_INFO.pParentFileTerminal

MSP_FILE_TERMINAL_EVENT_INFO.pFileTrack

MSP_FILE_TERMINAL_EVENT_INFO.TerminalMediaState

MSP_FILE_TERMINAL_EVENT_INFO.ftecEventCause

MSP_FILE_TERMINAL_EVENT_INFO.hrErrorCode

MSP_ASR_TERMINAL_EVENT_INFO

MSP_ASR_TERMINAL_EVENT_INFO.pASRTerminal

MSP_ASR_TERMINAL_EVENT_INFO.hrErrorCode

MSP_TTS_TERMINAL_EVENT_INFO

MSP_TTS_TERMINAL_EVENT_INFO.pTTSTerminal

MSP_TTS_TERMINAL_EVENT_INFO.hrErrorCode

MSP_TONE_TERMINAL_EVENT_INFO

MSP_TONE_TERMINAL_EVENT_INFO.pToneTerminal

MSP_TONE_TERMINAL_EVENT_INFO.hrErrorCode

Requirements

Requirement Value
Header msp.h (include Tapi3.h)

See also

ITMSPAddress::GetEvent

Media Service Provider Interface (MSPI)