IHolder::FreeResource method

Returns a resource to the inventory.

Syntax


HRESULT FreeResource(
  [inconst RESID ResId
);

Parameters

ResId [in]

The handle of the resource to be freed.

Return value

This method can return the following values.

Return codeDescription
S_OK

The method completed successfully.

E_INVALIDARG

ResTypId is not a valid resource handle.

E_FAIL

The method failed. The resource has not been freed.

 

Remarks

A resource originally returned by IHolder::AllocResource is returned to the pool. This notifies the Resource Dispenser through IDispenserDriver::ResetResource, which is the Resource Dispenser's opportunity to prepare the resource before it is returned to the pool.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComSvcs.h

See also

IDispenserDriver
IDispenserManager
IHolder

 

 

Community Additions

ADD
Show: