Windows Dev Center

INetFwProfile 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 INetFwProfile interface provides access to the firewall settings profile.

Members

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

Methods

The INetFwProfile interface has these methods.

MethodDescription
get_AuthorizedApplications

Gets the collection containing the authorized applications for this profile.

get_ExceptionsNotAllowed

Gets the value of the ExceptionsNotAllowed setting.

get_FirewallEnabled

Gets the value of the FirewallEnabled setting.

get_GloballyOpenPorts

Gets the collection containing the globally open ports for this profile.

get_IcmpSettings

Gets the object governing settings for ICMP packets.

get_NotificationsDisabled

Gets the value of the NotificationsDisabled setting.

get_RemoteAdminSettings

Gets the object containing the remote administration settings .

get_Services

Gets the collection containing the services for this profile.

get_Type

Retrieves the type of profile.

get_UnicastResponsesToMulticastBroadcastDisabled

Gets the value of the UnicastResponsesToMulticastBroadcastDisabled setting.

put_ExceptionsNotAllowed

Sets the value of the ExceptionsNotAllowed setting.

put_FirewallEnabled

Sets the value of the FirewallEnabled setting.

put_NotificationsDisabled

Sets the value of the NotificationsDisabled setting.

put_UnicastResponsesToMulticastBroadcastDisabled

Sets the value of the UnicastResponsesToMulticastBroadcastDisabled setting.

 

Properties

The INetFwProfile interface has these properties.

PropertyDescription

AuthorizedApplications

Access to the AuthorizedApplications collection for this profile.

ExceptionsNotAllowed

Access to the ExceptionsNotAllowed property for this profile.

FirewallEnabled

Access to the FirewallEnabled property for this profile.

GloballyOpenPorts

Access to the GloballyOpenPorts collection for this profile.

IcmpSettings

Access to the ICMP settings object for this profile.

NotificationsDisabled

Access to the NotificationsDisabled property for this profile.

RemoteAdminSettings

Access to the RemoteAdminSettings object for this profile.

Services

Access to the Services collection for this profile.

Type

Access to the type property for this profile.

UnicastResponsesToMulticastBroadcastDisabled

Access to the UnicastResponsesToMulticastBroadcastDisabled property for this profile.

 

Remarks

Instances of this interface are retrieved through the CurrentProfile property or GetProfileByType method of the INetFwPolicy 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
INetFwAuthorizedApplications
INetFwRemoteAdminSettings
InetFwServices
IUnknown

 

 

Community Additions

ADD
Show:
© 2015 Microsoft