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

Inheritance

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

Methods

The INetFwService interface has these methods.

 
INetFwService::get_Customized

Indicates whether at least one of the ports associated with the service has been customized.
INetFwService::get_Enabled

Indicates whether all the ports associated with the service are enabled. (Get)
INetFwService::get_GloballyOpenPorts

Retrieves the collection of globally open ports associated with the service.
INetFwService::get_IpVersion

Specifies the firewall IP version for which the service is authorized. (Get)
INetFwService::get_Name

Retrieves the friendly name of the service.
INetFwService::get_RemoteAddresses

Specifies a set of the remote addresses from which the service ports can listen for traffic. (Get)
INetFwService::get_Scope

Controls the network scope from which the port can listen. (INetFwService.get_Scope)
INetFwService::get_Type

Retrieves the type of the service.
INetFwService::put_Enabled

Indicates whether all the ports associated with the service are enabled. (Put)
INetFwService::put_IpVersion

Specifies the firewall IP version for which the service is authorized. (Put)
INetFwService::put_RemoteAddresses

Specifies a set of the remote addresses from which the service ports can listen for traffic. (Put)
INetFwService::put_Scope

Controls the network scope from which the port can listen. (INetFwService.put_Scope)

Remarks

Instances of this interface are retrieved through the INetFwServices collection.

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

INetFwServices

IUnknown