Partager via


structure MSP_EVENT_INFO (msp.h)

La structure MSP_EVENT_INFO définit le type d’événement retourné par la méthode GetEvent .

Syntaxe

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;

Membres

dwSize

Taille totale de la structure retournée.

Event

hCall

Handle MSP ; peut avoir la valeur NULL.

MSP_ADDRESS_EVENT_INFO

Struct retourné si l’événement MSP est ME_ADDRESS_EVENT.

MSP_ADDRESS_EVENT_INFO.Type

Décrit l’événement d’adresse msp de l’événement qui s’est produit.

MSP_ADDRESS_EVENT_INFO.pTerminal

Pointeur vers l’interface ITTerminal .

MSP_CALL_EVENT_INFO

Struct retourné si l’événement MSP est ME_CALL_EVENT.

MSP_CALL_EVENT_INFO.Type

Indique le type de MSP_CALL_EVENT qui s’est produit.

MSP_CALL_EVENT_INFO.Cause

MSP_CALL_EVENT_INFO.pStream

Pointeur vers l’interface ITStream sur laquelle l’événement s’est produit.

MSP_CALL_EVENT_INFO.pTerminal

Pointeur vers l’interface ITTerminal sur l’événement qui s’est produit.

MSP_CALL_EVENT_INFO.hrError

Indique une erreur, si une erreur s’est produite.

MSP_TSP_DATA

Struct retourné si l’événement MSP est ME_TSP_DATA.

MSP_TSP_DATA.dwBufferSize

Taille de la mémoire tampon retournée.

Taille de la mémoire tampon, en octets.

MSP_TSP_DATA.pBuffer[1]

Pointeur désignant la mémoire tampon.

MSP_PRIVATE_EVENT_INFO

Struct retourné si l’événement MSP est ME_PRIVATE_EVENT.

MSP_PRIVATE_EVENT_INFO.pEvent

Événement MSP.

pEvent.pEvent

Pointeur vers l’interface IDispatch de l’objet privé sur lequel l’événement s’est produit.

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

Configuration requise

   
En-tête msp.h (inclure Tapi3.h)

Voir aussi

ITMSPAddress::GetEvent

Interface MSPI (Media Service Provider Interface)