Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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 | 
|---|---|
  | 
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. | 
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 |