Share via


FirewallDeleteRule

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function deletes a firewall rule.

Syntax

DWORD FirewallDeleteRule(
   HRULE hRule, 
   BOOL bPersist
);

Parameters

  • 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

See Also

Reference

IP Firewall Functions
HRULE

Other Resources

System Errors - Alphabetical Order