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.
HRESULT InstanceReleased( [in] IFunctionInstance *pIFunctionInstance, [in] INT_PTR iProviderInstanceContext );
A pointer to an IFunctionInstance interface.
The context associated with the specific function instance.
This method can return one of these values.
Possible return values include, but are not limited to, the following.
||The method completed successfully.|
||One of the parameters contains an invalid argument.|
||The method is unable to allocate the memory required to perform this operation.|
When you implement this method, you must clean up the memory allocated for ppvProviderInstanceContext as necessary.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|