Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResUtilGetCoreClusterResourcesEx function

Returns handles to the core, Network Name, IP Address, and quorum resources. The PRESUTIL_GET_CORE_CLUSTER_RESOURCES_EX type defines a pointer to this function.

Syntax


DWORD WINAPI ResUtilGetCoreClusterResources(
  _In_  HCLUSTER  hCluster,
  _Out_ HRESOURCE *phClusterNameResource,
  _Out_ HRESOURCE *phClusterIPAddressResource,
  _Out_ HRESOURCE *phClusterQuorumResource,
  _In_  DWORD     dwDesiredAccess
);

typedef DWORD (WINAPI *PRESUTIL_GET_CORE_CLUSTER_RESOURCES_EX)(
    _In_  HCLUSTER  hCluster,
    _Out_ HRESOURCE *phClusterNameResource,
    _Out_ HRESOURCE *phClusterIPAddressResource,
    _Out_ HRESOURCE *phClusterQuorumResource,
    _In_  DWORD     dwDesiredAccess
);

Parameters

hCluster [in]

The cluster handle (see OpenCluster).

phClusterNameResource [out]

A pointer to a resource handle to the core Network Name resource for the cluster, which stores the cluster name.

phClusterIPAddressResource [out]

Not used.

phClusterQuorumResource [out]

A pointer to a resource handle to the cluster's quorum resource.

dwDesiredAccess [in]

The requested access privileges. This might be any combination of GENERIC_READ (0x80000000), GENERIC_ALL (0x10000000), or MAXIMUM_ALLOWED (0x02000000). If this value is zero (0), an undefined error might be returned. Using GENERIC_ALL is the same as calling ResUtilGetCoreClusterResources.

Return value

If the operations succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Header

ResApi.h

Library

ResUtils.lib

DLL

ResUtils.dll

See also

Resource Utility Functions

 

 

Show: