The GetClusterGroupState function returns the current state of a group.
CLUSTER_GROUP_STATE WINAPI GetClusterGroupState(
HGROUP hGroup,
LPWSTR lpszNodeName,
LPDWORD lpcbNodeName
);
If the operation was successful, GetClusterGroupState returns the current state of the group, which is represented by one of the following values:
State | Description |
---|---|
ClusterGroupFailed | The group is not operational but has not yet been taken offline. |
ClusterGroupOnline | The group is operational. |
ClusterGroupOffline | The group is not operational. |
ClusterGroupPartialOnline | One or more of the resources in the group has been brought online. |
If the operation was unsuccessful, this function returns ClusterGroupStateUnknown. For more detailed information about the error, call the Win32 function GetLastError.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in clusapi.h.