ClusterNodeEnumEx function

Retrieves the specified cluster node from a CLUSTER_ENUM_ITEM enumeration.

Syntax

DWORD ClusterNodeEnumEx(
  HNODEENUMEX        hNodeEnum,
  DWORD              dwIndex,
  PCLUSTER_ENUM_ITEM pItem,
  LPDWORD            cbItem
);

Parameters

hNodeEnum

A handle to the CLUSTER_ENUM_ITEM enumeration that contains the cluster node to retrieve.

dwIndex

The index that identifies the next 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 node.

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 written into the buffer.

Return Value

Return code Description
ERROR_NO_MORE_ITEMS
dwIndex 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

Node Management Functions