Platform SDK: TAPI

CMSPAddress::CreateMSPCallHelper

This helper template function is called in the derived class' implementation of CreateMSPCall. It checks all of the arguments for validity, including the media type argument (via the address object method IsValidSetOfMediaTypes; see above). It sets up the aggregation between the MSP call object and the TAPI call object using the CComAggObject ATL 2.1 class template. It then calls the Init method on the MSP call object.

HRESULT CreateMSPCallHelper(
  CMSPAddress *pCMSPAddress,
  MSP_HANDLE htCall,
  DWORD dwReserved,
  DWORD dwMediaType,
  IUnknown *pOuterUnknown,
  IUnknown **ppMSPCall,
  T **ppCMSPCall
);

Parameters

pCMSPAddress
Pointer to CMSPAddress interface for call.
htCall
Handle for MSP.
dwReserved
Reserved parameter, not currently used.
dwMediaType
Media types desired for call.
pOuterUnknown
Pointer to IUnknown interface for TAPI call object.
ppMSPCall
Pointer to IUnknown interface for MSP call object.
ppCMSPCall
Pointer to templated MSP call class, type implementation dependent.

See also

CreateMSPCall, CMSPAddress