Vanara/PInvoke/FirewallApi/readme.md

82 lines
16 KiB
Markdown
Raw Normal View History

## Vanara.PInvoke.FirewallApi
PInvoke API (methods, structures and constants) imported from FirewallApi.dll for Windows Firewall with Advanced Security.
- Includes methods from firewallapi.dll
- Current NuGet release: [![Nuget](https://img.shields.io/nuget/v/Vanara.PInvoke.FirewallApi?logo=nuget&style=flat-square)![Nuget](https://img.shields.io/nuget/dt/Vanara.PInvoke.FirewallApi?label=%20&style=flat-square)](https://www.nuget.org/packages/Vanara.PInvoke.FirewallApi)
### Methods - 100% API coverage (11 of 11 functions)
Native Method | Header | Managed Method
--- | --- | ---
2022-10-25 13:24:54 -04:00
[NetworkIsolationDiagnoseConnectFailureAndGetInfo](https://www.google.com/search?num=5&q=NetworkIsolationDiagnoseConnectFailureAndGetInfo+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationDiagnoseConnectFailureAndGetInfo](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationDiagnoseConnectFailureAndGetInfo)
[NetworkIsolationEnumAppContainers](https://www.google.com/search?num=5&q=NetworkIsolationEnumAppContainers+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationEnumAppContainers](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationEnumAppContainers)
[NetworkIsolationEnumerateAppContainerRules](https://www.google.com/search?num=5&q=NetworkIsolationEnumerateAppContainerRules+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationEnumerateAppContainerRules](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationEnumerateAppContainerRules)
[NetworkIsolationFreeAppContainers](https://www.google.com/search?num=5&q=NetworkIsolationFreeAppContainers+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationFreeAppContainers](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationFreeAppContainers)
[NetworkIsolationGetAppContainerConfig](https://www.google.com/search?num=5&q=NetworkIsolationGetAppContainerConfig+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationGetAppContainerConfig](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationGetAppContainerConfig)
[NetworkIsolationGetEnterpriseIdAsync](https://www.google.com/search?num=5&q=NetworkIsolationGetEnterpriseIdAsync+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationGetEnterpriseIdAsync](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationGetEnterpriseIdAsync)
[NetworkIsolationGetEnterpriseIdClose](https://www.google.com/search?num=5&q=NetworkIsolationGetEnterpriseIdClose+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationGetEnterpriseIdClose](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationGetEnterpriseIdClose)
[NetworkIsolationRegisterForAppContainerChanges](https://www.google.com/search?num=5&q=NetworkIsolationRegisterForAppContainerChanges+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationRegisterForAppContainerChanges](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationRegisterForAppContainerChanges)
[NetworkIsolationSetAppContainerConfig](https://www.google.com/search?num=5&q=NetworkIsolationSetAppContainerConfig+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationSetAppContainerConfig](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationSetAppContainerConfig)
[NetworkIsolationSetupAppContainerBinaries](https://www.google.com/search?num=5&q=NetworkIsolationSetupAppContainerBinaries+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationSetupAppContainerBinaries](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationSetupAppContainerBinaries)
[NetworkIsolationUnregisterForAppContainerChanges](https://www.google.com/search?num=5&q=NetworkIsolationUnregisterForAppContainerChanges+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.NetworkIsolationUnregisterForAppContainerChanges](https://github.com/dahall/Vanara/search?l=C%23&q=NetworkIsolationUnregisterForAppContainerChanges)
### Enumerations
Native Enum | Header | Managed Enum
--- | --- | ---
2022-10-25 13:24:54 -04:00
[INET_FIREWALL_AC_CHANGE_TYPE](https://www.google.com/search?num=5&q=INET_FIREWALL_AC_CHANGE_TYPE+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.INET_FIREWALL_AC_CHANGE_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=INET_FIREWALL_AC_CHANGE_TYPE)
[INET_FIREWALL_AC_CREATION_TYPE](https://www.google.com/search?num=5&q=INET_FIREWALL_AC_CREATION_TYPE+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INET_FIREWALL_AC_CREATION_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=INET_FIREWALL_AC_CREATION_TYPE)
[NET_FW_ACTION](https://www.google.com/search?num=5&q=NET_FW_ACTION+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_ACTION](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_ACTION)
[NET_FW_AUTHENTICATE_TYPE](https://www.google.com/search?num=5&q=NET_FW_AUTHENTICATE_TYPE+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_AUTHENTICATE_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_AUTHENTICATE_TYPE)
[NET_FW_EDGE_TRAVERSAL_TYPE](https://www.google.com/search?num=5&q=NET_FW_EDGE_TRAVERSAL_TYPE+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_EDGE_TRAVERSAL_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_EDGE_TRAVERSAL_TYPE)
[NET_FW_IP_PROTOCOL](https://www.google.com/search?num=5&q=NET_FW_IP_PROTOCOL+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_IP_PROTOCOL](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_IP_PROTOCOL)
[NET_FW_IP_VERSION](https://www.google.com/search?num=5&q=NET_FW_IP_VERSION+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_IP_VERSION](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_IP_VERSION)
[NET_FW_MODIFY_STATE](https://www.google.com/search?num=5&q=NET_FW_MODIFY_STATE+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_MODIFY_STATE](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_MODIFY_STATE)
[NET_FW_POLICY_TYPE](https://www.google.com/search?num=5&q=NET_FW_POLICY_TYPE+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_POLICY_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_POLICY_TYPE)
[NET_FW_PROFILE_TYPE](https://www.google.com/search?num=5&q=NET_FW_PROFILE_TYPE+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_PROFILE_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_PROFILE_TYPE)
[NET_FW_PROFILE_TYPE2](https://www.google.com/search?num=5&q=NET_FW_PROFILE_TYPE2+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_PROFILE_TYPE2](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_PROFILE_TYPE2)
[NET_FW_RULE_CATEGORY](https://www.google.com/search?num=5&q=NET_FW_RULE_CATEGORY+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_RULE_CATEGORY](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_RULE_CATEGORY)
[NET_FW_RULE_DIRECTION](https://www.google.com/search?num=5&q=NET_FW_RULE_DIRECTION+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_RULE_DIRECTION](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_RULE_DIRECTION)
[NET_FW_SCOPE](https://www.google.com/search?num=5&q=NET_FW_SCOPE+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_SCOPE](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_SCOPE)
[NET_FW_SERVICE_TYPE](https://www.google.com/search?num=5&q=NET_FW_SERVICE_TYPE+site%3Alearn.microsoft.com) | icftypes.h | [Vanara.PInvoke.FirewallApi.NET_FW_SERVICE_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=NET_FW_SERVICE_TYPE)
[NETISO_ERROR_TYPE](https://www.google.com/search?num=5&q=NETISO_ERROR_TYPE+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NETISO_ERROR_TYPE](https://github.com/dahall/Vanara/search?l=C%23&q=NETISO_ERROR_TYPE)
[NETISO_FLAG](https://www.google.com/search?num=5&q=NETISO_FLAG+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NETISO_FLAG](https://github.com/dahall/Vanara/search?l=C%23&q=NETISO_FLAG)
[NETISO_GEID](https://www.google.com/search?num=5&q=NETISO_GEID+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NETISO_GEID](https://github.com/dahall/Vanara/search?l=C%23&q=NETISO_GEID)
### Structures
Native Structure | Header | Managed Structure
--- | --- | ---
2022-10-25 13:24:54 -04:00
[INET_FIREWALL_AC_BINARIES](https://www.google.com/search?num=5&q=INET_FIREWALL_AC_BINARIES+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INET_FIREWALL_AC_BINARIES](https://github.com/dahall/Vanara/search?l=C%23&q=INET_FIREWALL_AC_BINARIES)
[INET_FIREWALL_AC_CAPABILITIES](https://www.google.com/search?num=5&q=INET_FIREWALL_AC_CAPABILITIES+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.INET_FIREWALL_AC_CAPABILITIES](https://github.com/dahall/Vanara/search?l=C%23&q=INET_FIREWALL_AC_CAPABILITIES)
[INET_FIREWALL_AC_CHANGE](https://www.google.com/search?num=5&q=INET_FIREWALL_AC_CHANGE+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INET_FIREWALL_AC_CHANGE](https://github.com/dahall/Vanara/search?l=C%23&q=INET_FIREWALL_AC_CHANGE)
[INET_FIREWALL_APP_CONTAINER](https://www.google.com/search?num=5&q=INET_FIREWALL_APP_CONTAINER+site%3Alearn.microsoft.com) | networkisolation.h | [Vanara.PInvoke.FirewallApi.INET_FIREWALL_APP_CONTAINER](https://github.com/dahall/Vanara/search?l=C%23&q=INET_FIREWALL_APP_CONTAINER)
[UNIONType](https://www.google.com/search?num=5&q=UNIONType+site%3Alearn.microsoft.com) | | [Vanara.PInvoke.FirewallApi.INET_FIREWALL_AC_CHANGE.UNIONType](https://github.com/dahall/Vanara/search?l=C%23&q=UNIONType)
### Interfaces
Native Interface | Header | Managed Interface
--- | --- | ---
2022-10-25 13:24:54 -04:00
[INetFwAuthorizedApplication](https://www.google.com/search?num=5&q=INetFwAuthorizedApplication+site%3Alearn.microsoft.com) | | [Vanara.PInvoke.FirewallApi.INetFwAuthorizedApplication](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwAuthorizedApplication)
[INetFwAuthorizedApplications](https://www.google.com/search?num=5&q=INetFwAuthorizedApplications+site%3Alearn.microsoft.com) | | [Vanara.PInvoke.FirewallApi.INetFwAuthorizedApplications](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwAuthorizedApplications)
[INetFwIcmpSettings](https://www.google.com/search?num=5&q=INetFwIcmpSettings+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwIcmpSettings](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwIcmpSettings)
[INetFwMgr](https://www.google.com/search?num=5&q=INetFwMgr+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwMgr](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwMgr)
[INetFwOpenPort](https://www.google.com/search?num=5&q=INetFwOpenPort+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwOpenPort](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwOpenPort)
[INetFwOpenPorts](https://www.google.com/search?num=5&q=INetFwOpenPorts+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwOpenPorts](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwOpenPorts)
[INetFwPolicy](https://www.google.com/search?num=5&q=INetFwPolicy+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwPolicy](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwPolicy)
[INetFwPolicy2](https://www.google.com/search?num=5&q=INetFwPolicy2+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwPolicy2](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwPolicy2)
[INetFwProduct](https://www.google.com/search?num=5&q=INetFwProduct+site%3Alearn.microsoft.com) | | [Vanara.PInvoke.FirewallApi.INetFwProduct](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwProduct)
[INetFwProducts](https://www.google.com/search?num=5&q=INetFwProducts+site%3Alearn.microsoft.com) | | [Vanara.PInvoke.FirewallApi.INetFwProducts](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwProducts)
[INetFwProfile](https://www.google.com/search?num=5&q=INetFwProfile+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwProfile](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwProfile)
[INetFwRemoteAdminSettings](https://www.google.com/search?num=5&q=INetFwRemoteAdminSettings+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwRemoteAdminSettings](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwRemoteAdminSettings)
[INetFwRule](https://www.google.com/search?num=5&q=INetFwRule+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwRule](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwRule)
[INetFwRule2](https://www.google.com/search?num=5&q=INetFwRule2+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwRule2](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwRule2)
[INetFwRule3](https://www.google.com/search?num=5&q=INetFwRule3+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwRule3](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwRule3)
[INetFwRules](https://www.google.com/search?num=5&q=INetFwRules+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwRules](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwRules)
[INetFwService](https://www.google.com/search?num=5&q=INetFwService+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwService](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwService)
[INetFwServiceRestriction](https://www.google.com/search?num=5&q=INetFwServiceRestriction+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwServiceRestriction](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwServiceRestriction)
[INetFwServices](https://www.google.com/search?num=5&q=INetFwServices+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.INetFwServices](https://github.com/dahall/Vanara/search?l=C%23&q=INetFwServices)
2020-12-24 13:00:18 -05:00
### Classes
Native Class | Header | Managed Class
--- | --- | ---
2022-10-25 13:24:54 -04:00
[FirewallApi](https://www.google.com/search?num=5&q=FirewallApi+site%3Alearn.microsoft.com) | | [Vanara.PInvoke.FirewallApi](https://github.com/dahall/Vanara/search?l=C%23&q=FirewallApi)
[NetFwAuthorizedApplication](https://www.google.com/search?num=5&q=NetFwAuthorizedApplication+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetFwAuthorizedApplication](https://github.com/dahall/Vanara/search?l=C%23&q=NetFwAuthorizedApplication)
[NetFwMgr](https://www.google.com/search?num=5&q=NetFwMgr+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetFwMgr](https://github.com/dahall/Vanara/search?l=C%23&q=NetFwMgr)
[NetFwOpenPort](https://www.google.com/search?num=5&q=NetFwOpenPort+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetFwOpenPort](https://github.com/dahall/Vanara/search?l=C%23&q=NetFwOpenPort)
[NetFwPolicy2](https://www.google.com/search?num=5&q=NetFwPolicy2+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetFwPolicy2](https://github.com/dahall/Vanara/search?l=C%23&q=NetFwPolicy2)
[NetFwProduct](https://www.google.com/search?num=5&q=NetFwProduct+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetFwProduct](https://github.com/dahall/Vanara/search?l=C%23&q=NetFwProduct)
[NetFwProducts](https://www.google.com/search?num=5&q=NetFwProducts+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetFwProducts](https://github.com/dahall/Vanara/search?l=C%23&q=NetFwProducts)
[NetFwRule](https://www.google.com/search?num=5&q=NetFwRule+site%3Alearn.microsoft.com) | netfw.h | [Vanara.PInvoke.FirewallApi.NetFwRule](https://github.com/dahall/Vanara/search?l=C%23&q=NetFwRule)