ClusterResourceOpenEnum

The ClusterResourceOpenEnum function opens an enumerator for iterating through a resource's dependencies and nodes.

HRESENUM WINAPI ClusterResourceOpenEnum(
  HRESOURCE hResource,  
  DWORD dwType          
);
 

Parameters

hResource
[in] Handle to a resource.
dwType
[in] Bitmask describing the type of cluster objects to be enumerated. One or more of the following values are valid:
CLUSTER_RESOURCE_ENUM_DEPENDS
Enumerate resources that the resource identified by hResource directly depends on.
CLUSTER_RESOURCE_ENUM_PROVIDES
Enumerate resources that directly depend on the resource identified by hResource.
CLUSTER_RESOURCE_ENUM_NODES
Enumerate nodes that can host the resource identified by hResource.

Return Values

NULL
The operation was unsuccessful. For detailed information about the error, call the Win32 function GetLastError.

If the operation was successful and the returned handle can be passed to ClusterResourceEnum, ClusterResourceOpenEnum returns an enumeration handle.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.