Share via


FirewallDeleteRule (Windows Embedded CE 6.0)

1/6/2010

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