INetSharingManager interface (netcon.h)

[Internet Connection Firewall may be altered or unavailable in subsequent versions. Instead, use the Windows Firewall API.]

The INetSharingManager interface is the primary interface for the Manager object. INetSharingManager provides methods to determine if sharing is installed, to manage port mappings, and to obtain enumeration interfaces for public and private connections.

Inheritance

The INetSharingManager interface inherits from the IDispatch interface. INetSharingManager also has these types of members:

Methods

The INetSharingManager interface has these methods.

Method Description
INetSharingManager::get_EnumEveryConnection The get_EnumEveryConnection method retrieves an enumeration interface for all the connections in the connection folder.
INetSharingManager::get_EnumPrivateConnections The get_EnumPrivateConnections method retrieves an enumeration interface for privately-shared connections.
INetSharingManager::get_EnumPublicConnections The EnumPublicConnections method retrieves an enumeration interface for publicly-shared connections.
INetSharingManager::get_INetSharingConfigurationForINetConnection The get_INetSharingConfigurationForINetConnection method retrieves an INetSharingConfiguration interface for the specified connection.
INetSharingManager::get_NetConnectionProps The get_NetConnectionProps method retrieves a properties interface for the specified connection.
INetSharingManager::get_SharingInstalled Reports whether the currently-installed version of Windows XP supports connection sharing.

Remarks

To obtain an enumeration interface for port mappings, use the get_INetSharingConfigurationForINetConnection method to obtain an INetSharingConfiguration interface. Then use the INetSharingConfiguration::EnumPortMappings method to obtain an IEnumNetSharingPortMapping interface.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header netcon.h

See also

Internet Connection Sharing and Internet Connection Firewall Interfaces

Internet Connection Sharing and Internet Connection Firewall Reference