Freigeben über


FirewallDeleteRule (Windows CE 5.0)

Send Feedback

This function deletes a firewall rule.

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 Values

Returns ERROR_SUCCESS if operation succeeds. If the argument string is not correct, this function returns ERROR_BAD_ARGUMENTS.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Fwapi.h.
Link Library: Fwapi.lib.

See Also

IP Firewall Functions | HRULE | System Errors - Alphabetical Order

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.