IFunctionDiscoveryProvider::InstanceReleased method (functiondiscoveryprovider.h)

[Function Discovery is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Releases the specified function instance and frees the memory previously allocated.

Syntax

HRESULT InstanceReleased(
  IFunctionInstance *pIFunctionInstance,
  INT_PTR           iProviderInstanceContext
);

Parameters

pIFunctionInstance

A pointer to an IFunctionInstance interface.

iProviderInstanceContext

The context associated with the specific function instance.

Return value

This method can return one of these values.

Possible return values include, but are not limited to, the following.

Return code Description
S_OK
The method completed successfully.
E_INVALIDARG
One of the parameters contains an invalid argument.
E_OUTOFMEMORY
The method is unable to allocate the memory required to perform this operation.

Remarks

When you implement this method, you must clean up the memory allocated for ppvProviderInstanceContext as necessary.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header functiondiscoveryprovider.h

See also

IFunctionDiscoveryProvider