FWPM_ACTION0 structure (fwpmtypes.h)

The FWPM_ACTION0 structure specifies the action taken if all the filter conditions are true.

Syntax

typedef struct FWPM_ACTION0_ {
  FWP_ACTION_TYPE type;
  union {
    GUID filterType;
    GUID calloutKey;
  };
} FWPM_ACTION0;

Members

type

Action type as specified by FWP_ACTION_TYPE which maps to a UINT32.

Possible values:

Value Meaning
FWP_ACTION_BLOCK
Block the traffic.

0x00000001 | FWP_ACTION_FLAG_TERMINATING

FWP_ACTION_PERMIT
Permit the traffic.

0x00000002 | FWP_ACTION_FLAG_TERMINATING

FWP_ACTION_CALLOUT_TERMINATING
Invoke a callout that always returns block or permit.

0x00000003 | FWP_ACTION_FLAG_CALLOUT | FWP_ACTION_FLAG_TERMINATING

FWP_ACTION_CALLOUT_INSPECTION
Invoke a callout that never returns block or permit.

0x00000004 | FWP_ACTION_FLAG_CALLOUT | FWP_ACTION_FLAG_NON_TERMINATING

FWP_ACTION_CALLOUT_UNKNOWN
Invoke a callout that may return block or permit.

0x00000005 | FWP_ACTION_FLAG_CALLOUT

filterType

An arbitrary GUID chosen by the policy provider.

Available when the action does not invoke a callout, that is, type does not contain FWP_ACTION_FLAG_CALLOUT.

calloutKey

The GUID for a valid callout in the layer.

Available when the action invokes a callout, that is, type contains FWP_ACTION_FLAG_CALLOUT.

Remarks

FWPM_ACTION0 is a specific implementation of FWPM_ACTION. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header fwpmtypes.h

See also

Windows Filtering Platform API Structures