Platform SDK: TAPI

MSP_EVENT_INFO

Defines type of event, returned by the GetEvent method.

typedef struct
{
  DWORD               dwSize;
  MSP_EVENT           Event;
  MSP_HANDLE          hCall;

  [switch_type(MSP_EVENT), switch_is((MSP_EVENT)Event)]
  union
  {
      [case(ME_ADDRESS_EVENT)] 
      struct
      {
          MSP_ADDRESS_EVENT   Type;
          ITTerminal        * pTerminal;
      } MSP_ADDRESS_EVENT_INFO;

      [case(ME_CALL_EVENT)] 
      struct 
      {
          MSP_CALL_EVENT       Type;
          MSP_CALL_EVENT_CAUSE   Cause;
          ITStream           * pStream;
          ITTerminal         * pTerminal;
          HRESULT              hrError;
      } MSP_CALL_EVENT_INFO;

      [case(ME_TSP_DATA)] 
      struct
      {
          DWORD               dwBufferSize;
          BYTE                pBuffer[1];
      } MSP_TSP_DATA;

      [case(ME_PRIVATE_EVENT)]
      struct
      {
          IDispatch         * pEvent;
      } MSP_PRIVATE_EVENT_INFO;

  };

} MSP_EVENT_INFO;

Members

dwSize
Total size of structure returned.
Event
MSP event type.
hCall
MSP handle, may be NULL.
MSP_ADDRESS_EVENT_INFO
Struct returned if MSP event is ME_ADDRESS_EVENT.
MSP_CALL_EVENT_INFO
Struct returned if MSP event is ME_CALL_EVENT.
MSP_TSP_DATA
Struct returned if MSP event is ME_TSP_DATA.
MSP_PRIVATE_EVENT_INFO
Struct returned if MSP event is ME_PRIVATE_EVENT.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Tapi3.h.

See Also

Media Service Provider Interface (MSPI), ITMSPAddress::GetEvent