FirewallDeleteRule
Other versions of this page are also available for the following:
8/28/2008
This function deletes a firewall rule.
Syntax
DWORD FirewallDeleteRule(
HRULE hRule,
BOOL bPersist
);
Parameters
- hRule
[in] Handle to the rule to delete. This is obtained from FirewallCreateRule or FirewallGetRules.
- bPersist
[in] TRUE to delete the rule. Specify FALSE if the rule will not be deleted from the registry and will be recreated when the device reboots.
Return Value
Returns ERROR_SUCCESS if operation succeeds. If the argument string is not correct, this function returns ERROR_BAD_ARGUMENTS.
Requirements
Header | fwapi.h |
Library | fwapi.lib |
Windows Embedded CE | Windows CE .NET 4.2 and later |