INetFwService 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 INetFwService interface provides access to the properties of a service that may be authorized to listen through the firewall.

Members

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

Methods

The INetFwService interface has these methods.

MethodDescription
get_Customized

Gets the flag showing whether at least one of the ports associated with the service has been customized.

get_Enabled

Gets the flag showing if all the ports associated with the service are enabled.

get_GloballyOpenPorts

Gets the collection of globally open ports associated with the service.

get_IpVersion

Gets the IP version for which the service is authorized.

get_Name

Gets the friendly name of the service.

get_RemoteAddresses

Gets the contents of the RemoteAddress property.

get_Scope

Gets the contents of the Scope property.

get_Type

Gets the type of the service.

put_Enabled

Sets the flag showing if all the ports associated with the service are enabled.

put_IpVersion

Sets the IP version for which the service is authorized.

put_RemoteAddresses

Sets the contents of the RemoteAddress property.

put_Scope

Sets the contents of the Scope property.

 

Properties

The INetFwService interface has these properties.

PropertyDescription

Customized

Accesses the flag showing whether at least one of the ports associated with the service has been customized.

Enabled

Accesses the flag showing if all the ports associated with the service are enabled.

GloballyOpenPorts

Accesses the collection of open ports associated with the service.

Name

Read-only access to the name of the service.

RemoteAddresses

Accesses the RemoteAddress property for this port.

Scope

Accesses the Scope property.

Type

Read-only access to the type of the service.

 

Remarks

Instances of this interface are retrieved through the INetFwServices 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
INetFwServices

 

 

Show: