IHolder::RequestDestroyResource method

Deletes a resource, calling its destructor to free memory and other associated system resources.

Syntax


HRESULT RequestDestroyResource(
  [inconst RESID ResId
);

Parameters

ResId [in]

The resource to be destroyed.

Return value

This method can return the following values.

Return codeDescription
S_OK

The method completed successfully.

E_INVALIDARG

ResId is not a valid resource handle.

E_FAIL

The method failed. The resource has not been destroyed.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComSvcs.h

See also

IHolder

 

 

Community Additions

ADD
Show: