CLUSCTL_RESOURCE_DELETE

The CLUSCTL_RESOURCE_DELETE control code is used by the Cluster Service to notify a resource DLL that a resource is about to be deleted.

Quick Info

Type: Internal
Access: CLUS_ACCESS_WRITE
Input: None
Output: None
Global: CLUS_NOT_GLOBAL
Modify: CLUS_MODIFY
Code: CLCTL_DELETE

Notes to Resource DLL Writers

The Cluster Service calls your ResourceControl entry point function with the CLUSCTL_RESOURCE_DELETE control code when a resource is being deleted from the cluster. Handling this control code allows you to perform any cleanup tasks that may be necessary before the deletion occurs, such as removing temporary files. However, be careful of doing cleanup tasks for a resource if all of the nodes are not online.

Realize that when you receive this notification, the deletion is inevitable. You cannot prevent any of your resources from being deleted.