INetSharingConfiguration interface

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

The INetSharingConfiguration interface provides methods to manage connection sharing, port mapping, and Internet Connection Firewall.

Members

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

Methods

The INetSharingConfiguration interface has these methods.

MethodDescription
AddPortMapping

Adds a service-port mapping for this connection.

DisableInternetFirewall

Disables Internet Connection Firewall on this connection.

DisableSharing

Disables sharing on this connection.

EnableInternetFirewall

Enables Internet Connection Firewall on this connection.

EnableSharing

Enables sharing on this connection.

EnumPortMappings

Retrieves an IEnumNetSharingPortMapping interface for this connection.

get_InternetFirewallEnabled

Determines whether Internet Connection Firewall is enabled on this connection.

get_SharingConnectionType

Determines the type of sharing on this connection.

get_SharingEnabled

Determines whether sharing is enabled on this connection.

RemovePortMapping

Removes a service-port mapping for this connection.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

None supported

Header

NetCon.h

DLL

Hnetcfg.dll

See also

INetSharingManager::get_INetSharingConfigurationForINetConnection
Internet Connection Sharing and Internet Connection Firewall Reference
Internet Connection Sharing and Internet Connection Firewall Interfaces

 

 

Build date: 11/16/2013

Community Additions

ADD
Show:
© 2014 Microsoft