Resource API Callback Functions

The Resource API provides four callback functions, three that are implemented by the Resource Monitor and called by a resource DLL and one that is implemented by a resource DLL and called by the Cluster Service. A resource DLL invokes a Resource Monitor callback function to report status and to log events. A resource DLL implements the ResourceCallback function to perform tasks in response to the cluster utility function ResUtilEnumResources enumerating resources.

These functions are briefly described as follows:

Callback function Description
LogEvent Records an event for a resource.
QuorumResourceLost Reports that control of the quorum resource has been lost.
ResourceCallback Called by the cluster utility function ResUtilEnumResources for each resource that it enumerates to perform resource-specific tasks.
SetResourceStatus Updates the status of a resource.