IResourceConsumer interface (strmif.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 IResourceConsumer interface provides a callback mechanism for objects using the IResourceManager interface.

An object must implement IResourceConsumer if it uses the IResourceManager interface to request resources from the filter graph manager. The filter graph manager calls methods on IResourceConsumer to notify the object when a resource becomes available, or when the object should release a resource that it acquired.

Applications typically do not use or implement this interface.

Inheritance

The IResourceConsumer interface inherits from the IUnknown interface. IResourceConsumer also has these types of members:

Methods

The IResourceConsumer interface has these methods.

 
IResourceConsumer::AcquireResource

The AcquireResource method notifies the resource consumer that a resource might be acquired.
IResourceConsumer::ReleaseResource

The ReleaseResource method requests the resource consumer to release the specified resource.

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 strmif.h (include Dshow.h)

See also

IResourceManager Interface