IEnumNetSharingPortMapping interface

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

The IEnumNetSharingPortMapping interface provides methods to enumerate the port mappings for a particular connection.

Members

The IEnumNetSharingPortMapping interface inherits from the IUnknown interface. IEnumNetSharingPortMapping also has these types of members:

Methods

The IEnumNetSharingPortMapping interface has these methods.

MethodDescription
Clone

Creates a new enumeration interface from this enumeration.

Next

Retrieves a specified number of port mappings from this enumeration.

Reset

Causes subsequent calls to operate from the beginning of the enumeration.

Skip

Skips the specified number of port mappings in this enumeration.

 

Remarks

To obtain an enumeration interface for port mappings, use the INetSharingManager::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
IEnumVARIANT

 

 

Build date: 11/16/2013

Community Additions

ADD
Show:
© 2014 Microsoft