Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IEnumNetSharingPortMapping interface (netcon.h)

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

Inheritance

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

Methods

The IEnumNetSharingPortMapping interface has these methods.

 
IEnumNetSharingPortMapping::Clone

The Clone method creates a new enumeration interface from this enumeration. (IEnumNetSharingPortMapping.Clone)
IEnumNetSharingPortMapping::Next

The Next method retrieves the specified number of port mappings that start from the current enumeration position.
IEnumNetSharingPortMapping::Reset

The Reset method causes subsequent enumeration calls to operate from the beginning of the enumeration. (IEnumNetSharingPortMapping.Reset)
IEnumNetSharingPortMapping::Skip

The Skip method skips the specified number of port mappings for 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

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

See also

IEnumVARIANT

Internet Connection Sharing and Internet Connection Firewall Interfaces

Internet Connection Sharing and Internet Connection Firewall Reference


Feedback

Was this page helpful?

Additional resources