Returns a resource to the inventory.
HRESULT IHolder::FreeResource (
const RESID |
ResId); |
Parameters
ResId [in]
The handle of the resource to free.
Return Values
S_OK
Success.
E_INVALIDARG
ResId is not a valid resource handle.
E_FAIL
Failure. Resource ResId has not been freed.
Comments
A resource originally returned by AllocResource is returned to the pool. This will notify the resource dispenser via IDispenserDriver::ResetResource, which is the resource dispenser's opportunity to prepare the resource before it is returned to the pool.