Getting Network Information

The following table lists network-related information and objects and the recommended API elements for obtaining them. If the specified API element does not have an example, look in the Index of Examples for a similar API element.

Information or object to get API element to use
Cluster that contains the network GetClusterFromNetwork
GUID identifying the network CLUSCTL_NETWORK_GET_ID
Name of the network CLUSCTL_NETWORK_GET_NAME
Network interfaces on the network ClusterNetworkOpenEnum, ClusterNetworkEnum, ClusterNetworkCloseEnum
Properties of the network CLUSCTL_NETWORK_GET_COMMON_PROPERTIES, CLUSCTL_NETWORK_GET_RO_COMMON_PROPERTIES, CLUSCTL_NETWORK_GET_PRIVATE_PROPERTIES, CLUSCTL_NETWORK_GET_RO_PRIVATE_PROPERTIES,
Property names CLUSCTL_NETWORK_ENUM_COMMON_PROPERTIES, CLUSCTL_NETWORK_ENUM_PRIVATE_PROPERTIES
State of the network GetClusterNetworkState

 

For additional network-related API elements, see Network Management Functions and Network Control Codes.