INetFwPolicy2::p ut_UnicastResponsesToMulticastBroadcastDisabled 方法 (netfw.h)

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

此属性是可读写的。

语法

HRESULT put_UnicastResponsesToMulticastBroadcastDisabled(
  NET_FW_PROFILE_TYPE2 profileType,
  VARIANT_BOOL         disabled
);

参数

profileType

disabled

返回值

备注

如果计算机发送广播数据包,则允许单播响应 3 秒。 使用此属性可更改此行为。

将从 CurrentProfileTypes 属性获取的配置文件类型 (get_CurrentProfileTypes) 传递时,请确保仅将一种配置文件类型传递给 get_UnicastResponsesToMulticastBroadcastDisabledput_UnicastResponsesToMulticastBroadcastDisabled。 请注意, get_CurrentProfileTypes 可以返回多个配置文件。

要求

要求
最低受支持的客户端 Windows Vista [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 [仅限桌面应用]
目标平台 Windows
标头 netfw.h (包括 FirewallAPI.h、Netfw.h)
DLL Wfapi.dll

另请参阅

INetFwPolicy2