Export (0) Print
Expand All

INetFwOpenPort 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 INetFwOpenPort interface provides access to the properties of a port that has been opened in the firewall.

Members

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

Methods

The INetFwOpenPort interface has these methods.

MethodDescription
get_BuiltIn

Retrieves the contents of the BuiltIn property.

get_Enabled

Retrieves the contents of the Enabled property.

get_IpVersion

Retrieves the contents of the IpVersion property.

get_Name

Retrieves the contents of the Name property.

get_Port

Retrieves the contents of the Port property.

get_Protocol

Retrieves the contents of the Protocol property.

get_RemoteAddresses

Retrieves the contents of the RemoteAddresses property.

get_Scope

Retrieves the contents of the Scope property.

put_Enabled

Sets the contents of the Enabled property.

put_IpVersion

Sets the contents of the IpVersion property.

put_Name

Sets the contents of the Name property.

put_Port

Sets the contents of the Port property.

put_Protocol

Sets the contents of the Protocol property.

put_RemoteAddresses

Modifies the contents of the RemoteAddresses property.

put_Scope

Modifies the contents of the Scope property.

 

Properties

The INetFwOpenPort interface has these properties.

PropertyDescription

BuiltIn

Accesses the contents of the BuiltIn property.

Enabled

Accesses the Enabled property.

IpVersion

Accesses the IpVersion property.

Name

Accesses the Name property.

Port

Accesses the Port property.

Protocol

Accesses the Protocol property.

RemoteAddresses

Accesses the RemoteAddresses property.

Scope

Accesses the Scope property.

 

Remarks

Ports with their BuiltIn property set to true (VARIANT_TRUE) are system specified and cannot be removed.

When creating new ports, this interface is supported by the HNetCfg.FWOpenPort COM object.

For reading or modifying existing ports, instances of this interface are retrieved through the INetFwOpenPorts collection.

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
INetFwOpenPorts

 

 

Build date: 11/16/2013

Community Additions

ADD
Show:
© 2014 Microsoft