大网数据广告活动
网络与域名解析

Object Model

· 52CE 我爱测

The following table lists the object types that can be manipulated through the various API sets supplied by the Windows Filtering Platform (WFP).

The following table lists the object types that can be manipulated through the various API sets supplied by the Windows Filtering Platform (WFP).

Object Type Description Sample Properties Example
Filter A rule that governs classification. If the conditions are met, the action is invoked. This is the most complex object exposed by WFP since it ties together all the other object types. <ul><li>Array of conditions</li><li>Action (Permit, Block, Callout)</li><li><a href="filter-weight-assignment.md">Weight</a></li><li>Context</li></ul> "Block traffic with a TCP port greater than 1024." "Callout to IDS for all traffic that is not secured."
Callout A set of functions that participate in the classification process. It allows for custom packet processing to be done when certain conditions are met. <ul><li>ID</li><li>Applicable layer</li></ul> The NAT driver
Layer A filter container in the filter engine. Represents a specific point in network traffic processing where the filter engine is invoked. <ul><li>Schema for filters that can be added to the layer</li></ul> The Inbound Transport Layer
Sub-layer A sub-component of a layer, used in <a href="filter-arbitration.md">filter arbitration</a>. <ul><li>Weight</li></ul> The IPsec Tunnel sub-layer
Provider A policy provider that has built a solution on WFP. It is used solely for management; it does not affect run-time packet processing. <ul><li>ID</li><li>Service name</li></ul> Windows Firewall with Advanced Security A 3rd-party URL filtering application
Provider Context A data blob used by a policy provider to store arbitrary context information. It is used to pass custom configuration information to a callout. The most common way to use the context information is to have filters reference a provider context. <ul><li>ID</li><li>Data blob</li></ul> IPsec stores authentication settings in the Base Filtering Engine ( BFE). The "Context" property of a filter indicates the authentication settings to use for the traffic that the filter describes. The SSL certification selection shim will store certification information in a provider context.

The object types exposed by WFP API have consistent semantics. The actions of add, enumerate, subscribe, and so on are similar for all object types.

Each object type is represented by a data structure (for example, FWPM_FILTER0). In order to minimize the number of different data structures exposed by the WFP API, the same data structure is used for both adding new objects and retrieving existing ones. Thus, there may be fields in each data structure that are ignored when adding a new object since these fields are filled in by the Base Filtering Engine (BFE), and not by the caller. For example, an FWPM_FILTER0 data structure has a filterId field that contains the LUID of the corresponding FWPS_FILTER0. This LUID is assigned by BFE, and thus, this field is ignored in the call to FwpmFilterAdd0.

Related topics

Object Management

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。