Microsoft DirectX 8.1 (C++)

CImageAllocator::NonDelegatingAddRef

Increments the reference count for the owning filter.

Syntax

HRESULT NonDelegatingAddRef(void);

Return Value

Returns an HRESULT value.

Remarks

An allocator is conceptually a separate object from the filter that creates it. However, the image allocator is dependent on the filter that created it to supply it with additional information (such as the media type that it connected with). Therefore, although the allocator looks after its own NonDelegatingQueryInterface function, it delegates all reference counting to the owning filter. So, when the allocator is subject to its NonDelegatingAddRef function, for example, it is the filter that owns the allocator that will actually be reference counted.

See Also