INetFwOpenPorts interface (netfw.h)

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

Inheritance

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

Methods

The INetFwOpenPorts interface has these methods.

 
INetFwOpenPorts::Add

Opens a new port and adds it to the collection.
INetFwOpenPorts::get__NewEnum

Returns an object supporting IEnumVARIANT that can be used to iterate through all the ports in the collection.
INetFwOpenPorts::get_Count

Retrieves a read-only element yielding the number of items in the collection. (INetFwOpenPorts.get_Count)
INetFwOpenPorts::Item

Returns the specified port if it is in the collection.
INetFwOpenPorts::Remove

Closes a port and removes it from 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

Requirement Value
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header netfw.h

See also

IDispatch

INetFwOpenPort

INetFwProfile

INetFwService

IUnknown