Bagikan melalui


struktur MSP_EVENT_INFO (msp.h)

Struktur MSP_EVENT_INFO menentukan jenis peristiwa yang dikembalikan oleh metode GetEvent .

Sintaks

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;

Anggota

dwSize

Ukuran total struktur yang dikembalikan.

Event

hCall

Handel MSP; mungkin NULL.

MSP_ADDRESS_EVENT_INFO

Struct dikembalikan jika peristiwa MSP ME_ADDRESS_EVENT.

MSP_ADDRESS_EVENT_INFO.Type

Menjelaskan peristiwa alamat msp dari peristiwa yang telah terjadi.

MSP_ADDRESS_EVENT_INFO.pTerminal

Arahkan ke antarmuka ITTerminal .

MSP_CALL_EVENT_INFO

Struct dikembalikan jika peristiwa MSP ME_CALL_EVENT.

MSP_CALL_EVENT_INFO.Type

Menunjukkan jenis MSP_CALL_EVENT yang telah terjadi.

MSP_CALL_EVENT_INFO.Cause

MSP_CALL_EVENT_INFO.pStream

Penunjuk ke antarmuka ITStream tempat peristiwa terjadi.

MSP_CALL_EVENT_INFO.pTerminal

Penunjuk ke antarmuka ITTerminal tempat peristiwa terjadi.

MSP_CALL_EVENT_INFO.hrError

Menunjukkan kesalahan, jika telah terjadi.

MSP_TSP_DATA

Struct dikembalikan jika peristiwa MSP ME_TSP_DATA.

MSP_TSP_DATA.dwBufferSize

Ukuran buffer yang dikembalikan.

Ukuran buffer, dalam byte.

MSP_TSP_DATA.pBuffer[1]

Pointer ke buffer.

MSP_PRIVATE_EVENT_INFO

Struct dikembalikan jika peristiwa MSP ME_PRIVATE_EVENT.

MSP_PRIVATE_EVENT_INFO.pEvent

Peristiwa MSP.

pEvent.pEvent

Penunjuk ke antarmuka IDispatch objek privat tempat peristiwa terjadi.

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

Persyaratan

   
Header msp.h (termasuk Tapi3.h)

Lihat juga

ITMSPAddress::GetEvent

Antarmuka Penyedia Layanan Media (MSPI)