GetClusterQuorumResource
The GetClusterQuorumResource function returns the name of a cluster's quorum resource.
DWORD WINAPI GetClusterQuorumResource(
HCLUSTER hCluster,
LPWSTR lpszResourceName,
LPDWORD lpcbResourceName,
LPWSTR lpszDeviceName,
LPDWORD lpcbDeviceName,
LPDWORD lpdwMaxQuorumLogSize
);
Parameters
-
hCluster
-
[in] Handle to an existing cluster.
-
lpszResourceName
-
[out] Pointer to a NULL-terminated string containing the name of the cluster's quorum resource.
-
lpcbResourceName
-
[in, out] On input, pointer to the count of characters in the buffer pointed to by the lpszResourceName parameter including the terminating NULL character. On output, pointer to the count of characters stored in the buffer, excluding the terminating NULL character.
-
lpszDeviceName
-
[out] Pointer to a NULL-terminated string containing the name of the device on which the quorum resource resides.
-
lpcbDeviceName
-
[in, out] On input, pointer to the count of characters in the buffer pointed to by the lpszDeviceName parameter including the terminating NULL character. On output, pointer to the count of characters stored in the buffer, excluding the terminating NULL character.
-
lpdwMaxQuorumLogSize
-
[out] Pointer to the maximum size of the log being maintained by the quorum resource.
Return Values
-
ERROR_SUCCESS
-
The operation was successful.
-
ERROR_MORE_DATA
-
The buffer pointed to by lpszResourceName is not long enough to hold the required number of characters. The lpcbResourceName parameter has been set to the required buffer length.
If the operation was unsuccessful, GetClusterQuorumResource can also return a Win32 error value.
Remarks
For information about a cluster's quorum resource, see Quorum Resource.
QuickInfo
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in clusapi.h.