The ResourceCallback function is called by the cluster utility function ResUtilEnumResources for each resource that it enumerates to perform resource-specific tasks.
DWORD ResourceCallback(
RESOURCE_HANDLE hOriginal,
RESOURCE_HANDLE hResource,
PVOID lpParams
);
If a non-NULL value is specified for hSelf in the call to ResUtilEnumResources, your ResourceCallback function will be invoked for each resource except the hSelf resource. Also, if lpszResourceType is specified in the call to ResUtilEnumResources, it will only be called for resources of that type.
Implement whatever tasks make sense for your resource DLL. For example, Cluster Server's Print Spooler resource DLL checks that the group for the resource contains a single Print Spooler resource. The IIS Virtual Root resource DLL validates that the resource's properties are unique and returns ERROR_DUP_NAME if the resource is the same as the resource identified by hOriginal.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in resapi.h.