Export (0) Print
Expand All

INetSharingManager interface

[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.

Members

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

Methods

The INetSharingManager interface has these methods.

MethodDescription
get_EnumEveryConnection

Retrieves an enumeration interface for all connections in the connections folder.

get_EnumPrivateConnections

Retrieves an enumeration interface for connections that are privately shared.

get_EnumPublicConnections

Retrieves an enumeration interface for connections that are publicly shared.

get_INetSharingConfigurationForINetConnection

Retrieves an INetSharingConfiguration interface for a specified connection.

get_NetConnectionProps

Returns a properties interface for a connection.

get_SharingInstalled

Reports whether the operating system 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

Header

NetCon.h

DLL

Hnetcfg.dll

See also

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