ClusterResourceEnumEx function (clusapi.h)
Enumerates a resource and then returns a pointer to the current dependent resource or node.
Syntax
DWORD ClusterResourceEnumEx(
[in] HRESENUMEX hResourceEnumEx,
[in] DWORD dwIndex,
[in, out] PCLUSTER_RESOURCE_ENUM_ITEM pItem,
[in, out] LPDWORD cbItem
);
Parameters
[in] hResourceEnumEx
A handle to a resource enumeration that is returned from the ClusterResourceOpenEnumEx function.
[in] dwIndex
The index of the resource or node object to return. This parameter should be zero for the first call to the
ClusterResourceEnumEx function and then be
incremented for subsequent calls.
[in, out] pItem
A pointer that receives the returned object.
[in, out] 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
The function returns one of the following values.
Return code/value | Description |
---|---|
|
The operation finished successfully, or the lpszName parameter is NULL. |
|
The buffer to which the lpszName parameter points is not big enough to hold the result. The lpcchName parameter returns the number of characters in the result, excluding the terminating null character. |
|
There are no more objects to be returned. |
Any other returned error code indicates that the operation failed. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | clusapi.h |
Library | ClusAPI.lib |
DLL | ClusAPI.dll |