Implementing Close

The purpose of Close is to remove a resource instance from the cluster. The Cluster service prompts the Resource Monitor to invoke the Close entry point function to remove a resource instance from the cluster; for example, in response to DeleteClusterResource.

To implement Close

  1. Required: Make sure the resource is offline. If it is not offline, call Terminate to forcibly take the resource offline.
  2. Required: Deallocate all structures related to the resource instance.
  3. Optional: Decrement instance counters if necessary.
  4. Recommended: For optimal performance, return a value within 300 milliseconds.

Example

See Resource DLL Examples.