IDeferredCommand interface (control.h)
[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.]
The IDeferredCommand
interface cancels or modify graph-control commands that were queued using the IQueueCommand interface.
When an application calls an IQueueCommand method on the Filter Graph Manager, it receives a pointer to the IDeferredCommand
interface. The application can use the interface to cancel or postpone the command, or retrieve the return value from the command.
Inheritance
The IDeferredCommand interface inherits from the IUnknown interface. IDeferredCommand also has these types of members:
Methods
The IDeferredCommand interface has these methods.
IDeferredCommand::Cancel The Cancel method cancels a command that the application previously queued. |
IDeferredCommand::Confidence The Confidence method retrieves a confidence value that indicates how likely it is for the command to be invoked at the requested time. |
IDeferredCommand::GetHResult The GetHResult method retrieves the return value from the invoked command. |
IDeferredCommand::Postpone The Postpone method specifies a new invocation time for the command. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | control.h (include Dshow.h) |