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(
  [in] IFunctionInstance *pIFunctionInstance,
  [in] INT_PTR           iProviderInstanceContext
);

Parameters

[in] pIFunctionInstance

A pointer to an IFunctionInstance interface.

[in] 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

Requirement Value
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