Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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