Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

INetFwOpenPorts interface

[The Windows Firewall API is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. For Windows Vista and later, use of the Windows Firewall with Advanced Security API is recommended.]

The INetFwOpenPorts interface is a standard Automation collection interface.

Members

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

Methods

The INetFwOpenPorts interface has these methods.

MethodDescription
Add

Opens a new port and adds it to the collection.

get__NewEnum

Retrieves an enumerator for the collection.

get_Count

Retrieves the contents of the Count property.

Item

Returns the specified port if present in the collection.

Remove

Closes a port and removes it from the collection.

 

Properties

The INetFwOpenPorts interface has these properties.

PropertyDescription

_NewEnum

Gets an enumerator for the collection.

Count

Gets the count for the collection.

 

Remarks

An instance of this interface is retrieved through the GloballyOpenPorts property of the INetFwProfile interface.

All configuration changes take effect immediately.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Header

Netfw.h

DLL

FirewallAPI.dll;
Hnetcfg.dll on Windows XP with SP2

See also

IDispatch
IUnknown
INetFwOpenPort
INetFwProfile
INetFwService

 

 

Build date: 11/16/2013

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.