IHolder::RequestDestroyResource method (comsvcs.h)

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

Syntax

HRESULT RequestDestroyResource(
  [in] const RESID __MIDL__IHolder0009
);

Parameters

[in] __MIDL__IHolder0009

The resource to be destroyed.

Return value

This method can return the following values.

Return code Description
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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

IHolder