CMSPStream::Init method (mspstrm.h)

The Init 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.

Syntax

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.

Return value

None

Requirements

Requirement Value
Target Platform Windows
Header mspstrm.h

See also

CMSPStream