CMSPCallMultiGraph::RegisterWaitEvent method (mspcall.h)

The RegisterWaitEvent method should be called only within a critical section on the call object. It allocates a thread pool context block, fills in the fields, increments the reference counts, and posts the block to the thread pool by calling the RegisterWaitForSingleObject function. Saves the wait handle returned for use in UnregisterWaitEvent. Saves the wait block in the list of wait blocks.

Syntax

HRESULT RegisterWaitEvent(
  IMediaEvent *pIMediaEvent,
  ITStream    *pITStream
);

Parameters

pIMediaEvent

Pointer to DirectShow IMediaEvent interface.

pITStream

Pointer to ITStream interface.

Return value

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

Requirements

Requirement Value
Target Platform Windows
Header mspcall.h

See also

CMSPCallMultiGraph