Share via


FirewallEnableRule (Windows CE 5.0)

Send Feedback

This function enables or disables a firewall rule.

DWORD FirewallEnableRule(  HRULE hRule,   BOOL bEnabled,   BOOL bPersist);

Parameters

  • hRule
    [in] Handle to the rule to enable or disable.
  • bEnabled
    [in] TRUE to enable the rule, and FALSE otherwise.
  • bPersist
    [in] TRUE to save the setting in the registry so that it preserved when a reboot occurs, or FALSE otherwise.

Return Values

Returns ERROR_SUCCESS if operation succeeds.

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.