The GetClusterNetInterfaceState function returns the current state of a network interface.
CLUSTER_NETINTERFACE_STATE WINAPI GetClusterNetInterfaceState(
HNETINTERFACE hNetInterface
);
If the operation was successful, GetClusterNetInterfaceState returns the current state of the network, which is represented by one of the following values:
State | Description |
---|---|
ClusterNetInterfaceFailed | The network interface is not operational; typically a hardware failure has occurred. |
ClusterNetInterfaceUnreachable | None of the active nodes in the cluster can access the network interface. |
ClusterNetworkUp | The network interface is operational. |
ClusterNetworkUnavailable | State information for the network interface is unavailable. |
If the operation was unsuccessful, GetClusterNetInterfaceState returns ClusterNetInterfaceStateUnknown. For more detailed information about the error, call the Win32 function GetLastError.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in clusapi.h.