IResourceManager::NotifyRelease
Microsoft DirectShow 9.0 |
IResourceManager::NotifyRelease
The NotifyRelease method notifies the resource manager that IResourceConsumer has released a resource.
Syntax
HRESULT NotifyRelease ( LONG idResource, IResourceConsumer *pConsumer, BOOL bStillWant );
Parameters
idResource
[in] Resource token.
pConsumer
[in] Pointer to the object releasing the resource.
bStillWant
[in] Flag that specifies whether the resource is still required. Set to TRUE to indicate that you still want the resource when it is next available, or FALSE if you no longer want the resource.
Return Value
Returns an HRESULT value that depends on the implementation. HRESULT can be one of the following standard constants, or other values not listed.
Return code | Description |
E_FAIL | Failure. |
E_POINTER | Null pointer argument. |
E_INVALIDARG | Invalid argument. |
E_NOTIMPL | Method isn't supported. |
S_OK or NOERROR | Success. |
Remarks
Use this method in response to an IResourceConsumer::ReleaseResource method, or when you have finished using the resource.
Requirements
Header: Declared in Strmif.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also