IResourceManager interface

The IResourceManager interface resolves contentions for system resources.

The filter graph manager exposes this interface. Filters can use this interface to request resources that other objects are likely to use. For example, audio renderers use this interface to resolve contentions for the wave-output device, to enable sound to follow focus.

Applications will typically not use this interface.

An object can use this interface to resolve possible contentions between existing resources. The object registers the resource with the interface and then requests it whenever needed. The object should notify the filter graph manager whenever the user focus changes. The filter graph manager can then switch contended resources to the objects that have the focus of the user.

An object that uses this interface must implement the IResourceConsumer interface. IResourceConsumer provides a callback mechanism for the filter graph manager to notify the object when a resource becomes available, or when the object should release a resource that it acquired.

Members

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

Methods

The IResourceManager interface has these methods.

MethodDescription
CancelRequest

Cancels the request for a resource.

NotifyAcquire

Notifies the resource manager that an attempt to acquire a resource has completed.

NotifyRelease

Notifies the resource manager that a resource consumer has released a resource.

Register

Registers a single named resource with the resource manager.

RegisterGroup

Registers a named resource group with the resource manager.

ReleaseFocus

Sets the focus object to NULL in the resource manager if the object of the current focus object is the one specified in this method.

RequestResource

Requests the use of a given registered resource.

SetFocus

Notifies the resource manager that a specified object has been given the focus of the user.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

 

 

Show: