Platform SDK: TAPI

CMSPStream::Init

This method is called by the MSPCall when the stream is created. It initializes the members, calls MSPCallAddRef on the call object, and queries for various interfaces on the filter graph.

virtual HRESULT Init(
  HANDLE hAddress,
  CMSPCallBase *pMSPCall,
  IMediaEvent *pGraph,
  DWORD dwMediaType,
  TERMINAL_DIRECTION Direction
);

Parameters

hAddress
Handle for address associated with this call.
pMSPCall
Pointer to MSP basic calling handler class, CMSPCallBase.
pGraph
Pointer to IMediaEvent interface for the stream's filter graph. This DirectShow interface supports event notification to the application from the filter graph and from filters within the filter graph.
dwMediaType
Descriptor of media type for stream.
Direction
Descriptor of terminal direction.

See Also

CMSPStream