CreateMSPCallHelper function (mspaddr.h)

The CreateMSPCallHelper 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 class template. It then calls the Init method on the MSP call object.

Syntax

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.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header mspaddr.h

See also

CMSPAddress

CreateMSPCall