The GetClusterInformation function retrieves a cluster's name and version.
DWORD WINAPI GetClusterInformation(
HCLUSTER hCluster,
LPWSTR lpszClusterName,
LPDWORD lpcchClusterName,
LPCLUSTERVERSIONINFO lpClusterInfo
);
lpClusterInfo->dwVersionInfoSize =
sizeof(CLUSTERVERSIONINFO);
If the operation was unsuccessful for a reason other than insufficient size in the buffer pointed to by lpszClusterName, GetClusterInformation returns a Win32 error value.
When GetClusterInformation returns, the variable pointed to by lpcchClusterName contains the number of characters stored in the buffer. The count returned does not include the terminating NULL character.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in clusapi.h.