CDeferredCommand.CDeferredCommand constructor

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Constructor method.

Syntax

CDeferredCommand(
   CCmdQueue *pQ,
   LPUNKNOWN pUnk,
   HRESULT   *phr,
   LPUNKNOWN pUnkExecutor,
   REFTIME   time,
   GUID      *iid,
   long      dispidMethod,
   short     wFlags,
   long      cArgs,
   VARIANT   *pDispParams,
   VARIANT   *pvarResult,
   short     *puArgErr,
   BOOL      bStream
);

Parameters

pQ

Pointer to an object that exposes the IQueueCommand interface.

pUnk

Pointer to the outer IUnknown interface for aggregation.

phr

Pointer to a returned HRESULT value.

pUnkExecutor

Pointer to the object that will carry out this command.

time

Time at which the command will be run.

iid

Pointer to the globally unique identifier (GUID) of the interface that contains the method.

dispidMethod

Method on the interface to call.

wFlags

Context of the invocation.

cArgs

Number of arguments passed.

pDispParams

Pointer to a list of argument variant types.

pvarResult

Pointer to a returned variant type list, if any.

puArgErr

Pointer to the last argument in the pDispParams parameter list with an error.

bStream

Value indicating whether the deferred command time is in stream time (TRUE) or presentation time (FALSE).

Requirements

Requirement Value
Header
Ctlutil.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CDeferredCommand Class