Click to Rate and Give Feedback
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 defines the following members:

Methods

The INetSharingConfiguration interface defines the following methods.

MethodDescription
get_SharingEnabled

Determines whether sharing is enabled on this connection.

get_SharingConnectionType

Determines the type of sharing on this connection.

DisableSharing

Disables sharing on this connection.

EnableSharing

Enables sharing on this connection.

get_InternetFirewallEnabled

Determines whether Internet Connection Firewall is enabled on this connection.

DisableInternetFirewall

Disables Internet Connection Firewall on this connection.

EnableInternetFirewall

Enables Internet Connection Firewall on this connection.

EnumPortMappings

Retrieves an IEnumNetSharingPortMapping interface for this connection.

AddPortMapping

Adds a service-port mapping for this connection.

RemovePortMapping

Removes a service-port mapping for this connection.

 

Requirements

Minimum supported clientWindows XP
Minimum supported serverNone supported
HeaderNetCon.h
DLLHnetcfg.dll

See Also

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

 

 

Send comments about this topic to Microsoft

Build date: 1/14/2010

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker