PROBLEM: I am not able to find any API which would return the IP address of the cluster, maximum number of nodes supported by the cluster.
My cluster is MS SQL Server Cluster. I need to find the IP address of the SQL Server also.
There is a COM interface which provides the functionality to gather this information, IClusCfgClusterInfo but my code is supposed to support Windows 2000 OS also, so cannot use this interface. There is an API provided by Failover Clustering, called ResUtilGetCoreClusterResources() using which I am able to find the IP address of the Cluster but again this API is introduced in Windows 2003 and not supported with Windows 2000.
In short I want to gather following values for SQL Server Cluster
1. Cluster IP address 2. SQL Server(s) IP addresses 3. Maximum number of nodes supported by the cluster