ClusterEnumEx function

Enumerates the objects in a cluster, and then gets the name and properties of the cluster object.

Syntax

DWORD ClusterEnumEx(
  HCLUSENUMEX        hClusterEnum,
  DWORD              dwIndex,
  PCLUSTER_ENUM_ITEM pItem,
  LPDWORD            cbItem
);

Parameters

hClusterEnum

A handle to the enumerator that is returned by the ClusterOpenEnumEx function.

dwIndex

The index that identifies the next cluster object to enumerate. This parameter should be zero for the first call to the ClusterEnumEx function and then be incremented for subsequent calls.

pItem

A pointer that receives the returned cluster object properties.

cbItem

On input, the size of the pItem parameter.

On output, either the required size in bytes of the buffer if the buffer is too small, or the number of bytes that are written into the buffer.

Return Value

Return code Description
ERROR_NO_MORE_ITEMS
The dwIndex parameter is larger than the number of items in the enumeration.
ERROR_MORE_DATA
The buffer is too small.
ERROR_SUCCESS
The buffer was filled successfully.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise
Target Platform Windows
Header clusapi.h
Library ClusAPI.lib
DLL ClusAPI.dll

See Also

CLUSTER_ENUM_ITEM

Failover Cluster Management Function