FW_RULE_FLAGS

This enumeration contains values that are combined to specify rule flags. The dwFlags member of FW_RULE uses a combination of these values.

typedef enum _FW_RULE_FLAGS {
  FWF_BLOCK = FWA_BLOCK,
  FWF_ALLOW = FWA_ALLOW,
  FWF_LOG = 0x04,
  FWF_INBOUND = FWD_INBOUND,
  FWF_OUTBOUND = FWD_OUTBOUND,
  FWF_DISABLED = 0x20
} FW_RULE_FLAGS;

Elements

  • FWF_BLOCK
    Block traffic in the direction specified. This flag is exclusive with the FWF_ALLOW and FW_LOG flags.
  • FWF_ALLOW
    Allow traffic in the direction specified. This flag is exclusive with the FWF_BLOCK and FW_LOG flags.
  • FWF_LOG
    Log traffic in the direction specified. This flag is exclusive with the FWF_BLOCK and FW_ALLOW flags.
  • FWF_INBOUND
    Specify the direction of traffic as inbound. This flag is exclusive with the FWF_OUTBOUND flag.
  • FWF_OUTBOUND
    Specify the direction of traffic as outbound. This flag is exclusive with the FWF_INBOUND flag.
  • FWF_DISABLED
    Specify a rule as disabled.

Remarks

Disabled rules do not affect packet filtering or logging. The firewall remembers disabled rules, so there is no need to specify all of the rule parameters each time a rule is enabled.

For the firewall, traffic is classified as outbound, inbound, or local. Local traffic does not cross the firewall security boundary and is always allowed.

Requirements

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

See Also

Firewall Enumerations

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.