IEnumNetworks interface (netlistmgr.h)
The IEnumNetworks interface is a standard enumerator for networks. It enumerates all networks available on the local machine. This interface can be obtained from the INetworkListManager interface.
Inheritance
The IEnumNetworks interface inherits from the IUnknown interface. IEnumNetworks also has these types of members:
Methods
The IEnumNetworks interface has these methods.
IEnumNetworks::Clone The Clone method creates an enumerator that contains the same enumeration state as the enumerator currently in use. (IEnumNetworks.Clone) |
IEnumNetworks::get__NewEnum The get_NewEnum property returns an automation enumerator object that you can use to iterate through the IEnumNetworks collection. |
IEnumNetworks::Next The Next method gets the next specified number of elements in the enumeration sequence. (IEnumNetworks.Next) |
IEnumNetworks::Reset The Reset method resets the enumeration sequence to the beginning. (IEnumNetworks.Reset) |
IEnumNetworks::Skip The Skip method skips over the next specified number of elements in the enumeration sequence. (IEnumNetworks.Skip) |
Remarks
The list of connected or disconnected networks is cached by IEnumNetworks when it is instantiated. This list is not updated when the connectivity state of a network changes. The INetwork interface is recommended for retrieving the current connectivity state of a network.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | netlistmgr.h |