WFP 用户模式管理函数
从标注驱动程序调用 Windows 筛选平台用户模式管理功能的语义与从用户模式应用程序调用时完全相同,只不过返回类型是 NTSTATUS 代码而不是 Win32 错误代码。
用户模式 WFP Functions 文档的 “管理功能 ”部分记录了这些 函数 。
注意
每个函数的内核模式版本在 fwpmk.h 中定义。 每个函数的用户模式版本在 fwpmu.h 中定义。
除 FwpmFreeMemory0 之外的所有函数的调用方必须在 IRQL = PASSIVE_LEVEL 运行。 FwpmFreeMemory0 的调用方必须在 IRQL <= DISPATCH_LEVEL 运行。
标注管理
- FwpmCalloutAdd0
- FwpmCalloutCreateEnumHandle0
- FwpmCalloutDeleteById0
- FwpmCalloutDeleteByKey0
- FwpmCalloutDestroyEnumHandle0
- FwpmCalloutEnum0
- FwpmCalloutGetById0
- FwpmCalloutGetByKey0
- FwpmCalloutGetSecurityInfoByKey0
- FwpmCalloutSetSecurityInfoByKey0
连接对象管理
- FwpmConnectionCreateEnumHandle0
- FwpmConnectionDestroyEnumHandle0
- FwpmConnectionEnum0
- FwpmConnectionGetById0
- FwpmConnectionGetSecurityInfo0
- FwpmConnectionSetSecurityInfo0
事件管理
- FwpmNetEventCreateEnumHandle0
- FwpmNetEventDestroyEnumHandle0
- FwpmNetEventEnum:
- FwpmNetEventEnum0 (Windows Vista)
- FwpmNetEventEnum1 (Windows 7)
- FwpmNetEventEnum2 (Windows 8)
- FwpmNetEventsGetSecurityInfo0
- FwpmNetEventsSetSecurityInfo0
筛选器管理
- FwpmFilterAdd0
- FwpmFilterCreateEnumHandle0
- FwpmFilterDeleteById0
- FwpmFilterDeleteByKey0
- FwpmFilterDestroyEnumHandle0
- FwpmFilterEnum0
- FwpmFilterGetById0
- FwpmFilterGetByKey0
- FwpmFilterGetSecurityInfoByKey0
- FwpmFilterSetSecurityInfoByKey0
层管理
- FwpmLayerCreateEnumHandle0
- FwpmLayerDestroyEnumHandle0
- FwpmLayerEnum0
- FwpmLayerGetById0
- FwpmLayerGetByKey0
- FwpmLayerGetSecurityInfoByKey0
- FwpmLayerSetSecurityInfoByKey0
提供程序上下文管理
- [FwpmProviderContextAdd:
- FwpmProviderContextAdd0 (Windows Vista)
- FwpmProviderContextAdd1 (Windows 7)
- FwpmProviderContextAdd2 (Windows 8)
- FwpmProviderContextCreateEnumHandle0
- FwpmProviderContextDeleteById0
- FwpmProviderContextDeleteByKey0
- FwpmProviderContextDestroyEnumHandle0
- FwpmProviderContextEnum:
- FwpmProviderContextEnum0 (Windows Vista)
- FwpmProviderContextEnum1 (Windows 7)
- FwpmProviderContextEnum2 (Windows 8)
- FwpmProviderContextGetById:
- FwpmProviderContextGetById0 (Windows Vista)
- FwpmProviderContextGetById1 (Windows 7)
- FwpmProviderContextGetById2 (Windows 8)
- FwpmProviderContextGetByKey:
- FwpmProviderContextGetByKey0 (Windows Vista)
- FwpmProviderContextGetByKey1 (Windows 7)
- FwpmProviderContextGetByKey2 (Windows 8)
- FwpmProviderContextGetSecurityInfoByKey0
- FwpmProviderContextSetSecurityInfoByKey0
提供程序管理
- FwpmProviderAdd0
- FwpmProviderCreateEnumHandle0
- FwpmProviderDeleteByKey0
- FwpmProviderDestroyEnumHandle0
- FwpmProviderEnum0
- FwpmProviderGetByKey0
- FwpmProviderGetSecurityInfoByKey0
- FwpmProviderSetSecurityInfoByKey0
会话管理
- FwpmEngineClose0
- FwpmEngineGetOption0
- FwpmEngineGetSecurityInfo0
- FwpmEngineOpen0
- FwpmEngineSetOption0
- FwpmEngineSetSecurityInfo0
- FwpmSessionCreateEnumHandle0
- FwpmSessionDestroyEnumHandle0
- FwpmSessionEnum0
子层管理
- FwpmSubLayerAdd0
- FwpmSubLayerCreateEnumHandle0
- FwpmSubLayerDeleteByKey0
- FwpmSubLayerDestroyEnumHandle0
- FwpmSubLayerEnum0
- FwpmSubLayerGetByKey0
- FwpmSubLayerGetSecurityInfoByKey0
- FwpmSubLayerSetSecurityInfoByKey0