The RESOURCE_STATUS structure contains information about a resource that is being brought online or taken offline. This structure is used as a parameter to the callback function SetResourceStatus. The RESOURCE_STATUS structure is defined in RESAPI.H.
typedef struct _RESOURCE_STATUS {
CLUSTER_RESOURCE_STATE ResourceState;
DWORD CheckPoint;
DWORD WaitHint;
HANDLE EventHandle;
} RESOURCE_STATUS, *PRESOURCE_STATUS;
Resource DLLs typically set the ResourceState member to ClusterResourceOnline or ClusterResourceOffline. However, if ResourceState is set to ClusterResourceOnlinePending or ClusterResourceOfflinePending, then the CheckPoint member should be greater than the previous value reported for CheckPoint.
Before returning the ClusterResourceUnavailable state in the ResourceState member, a resource DLL should call the Win32 function SetLastError.
Resource DLLs set the EventHandle member to a handle that is signaled when a resource fails.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in resapi.h.