INetFwProfile 接口 (netfw.h)

[Windows 防火墙 API 可用于“要求”部分中指定的操作系统。 它可能在后续版本中变更或不可用。 对于 Windows Vista 及更高版本,建议使用 具有高级安全 API 的 Windows 防火墙 。]

INetFwProfile 接口提供对防火墙设置配置文件的访问。

继承

INetFwProfile 接口继承自 IDispatch 接口。 INetFwProfile 还具有以下类型的成员:

方法

INetFwProfile 接口具有以下方法。

 
INetFwProfile::get_AuthorizedApplications

检索配置文件的授权应用程序的集合。
INetFwProfile::get_ExceptionsNotAllowed

指示防火墙是否不应允许例外。 (获取)
INetFwProfile::get_FirewallEnabled

指示是否启用防火墙。 (获取)
INetFwProfile::get_GloballyOpenPorts

检索配置文件的全局打开端口的集合。
INetFwProfile::get_IcmpSettings

检索配置文件的 ICMP 设置。
INetFwProfile::get_NotificationsDisabled

指示是否禁用交互式防火墙通知。 (INetFwProfile.get_NotificationsDisabled)
INetFwProfile::get_RemoteAdminSettings

指定控制远程管理的设置。
INetFwProfile::get_Services

检索配置文件的服务集合。
INetFwProfile::get_Type

指定配置文件的类型。
INetFwProfile::get_UnicastResponsesToMulticastBroadcastDisabled

指示防火墙是否不应允许对多播和广播流量进行单播响应。 (INetFwProfile.get_UnicastResponsesToMulticastBroadcastDisabled)
INetFwProfile::p ut_ExceptionsNotAllowed

指示防火墙是否不应允许例外。 (放置)
INetFwProfile::p ut_FirewallEnabled

指示是否启用防火墙。 (放置)
INetFwProfile::p ut_NotificationsDisabled

指示是否禁用交互式防火墙通知。 (INetFwProfile.put_NotificationsDisabled)
INetFwProfile::p ut_UnicastResponsesToMulticastBroadcastDisabled

指示防火墙是否不应允许对多播和广播流量进行单播响应。 (INetFwProfile.put_UnicastResponsesToMulticastBroadcastDisabled)

注解

此接口的实例通过 INetFwPolicy 接口的 CurrentProfile 属性或 GetProfileByType 方法检索。

所有配置更改都会立即生效。

要求

要求
最低受支持的客户端 Windows Vista、Windows XP SP2 [仅限桌面应用]
最低受支持的服务器 Windows Server 2003 SP1 [仅限桌面应用]
目标平台 Windows
标头 netfw.h

另请参阅

IDispatch

INetFwAuthorizedApplications

INetFwRemoteAdminSettings

IUnknown

InetFwServices