Share via


IsFirewallEnabled

This function determines whether the firewall is enabled.

BOOL IsFirewallEnabled(
  USHORT Family
);

Parameters

  • Family
    [in] The following table shows the possible values.
    Value Description
    AF_INET Checks if the IPv4 firewall is enabled.
    AF_INET6 Checks if the IPv6 firewall is enabled.

Return Values

This function returns TRUE if the firewall is enabled. It returns FALSE if the firewall is disabled.

Requirements

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

See Also

Firewall Functions

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.