FWP_CONDITION_VALUE0 structure

The FWP_CONDITION_VALUE0 structure defines a condition value that is used by the filter engine when testing a data field against a filtering condition.

Note  FWP_CONDITION_VALUE0 is a specific version of FWP_CONDITION_VALUE. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.
 

Syntax


typedef struct FWP_CONDITION_VALUE0_ {
  FWP_DATA_TYPE type;
  union {
    UINT8                 uint8;
    UINT16                uint16;
    UINT32                uint32;
    UINT64                *uint64;
    INT8                  int8;
    INT16                 int16;
    INT32                 int32;
    INT64                 *int64;
    float                 float32;
    double                *double64;
    FWP_BYTE_ARRAY16      *byteArray16;
    FWP_BYTE_BLOB         *byteBlob;
    SID                   *sid;
    FWP_BYTE_BLOB         *sd;
    FWP_TOKEN_INFORMATION *tokenInformation;
    FWP_BYTE_BLOB         *tokenAccessInformation;
    LPWSTR                unicodeString;
    FWP_BYTE_ARRAY6       *byteArray6;
    FWP_V4_ADDR_AND_MASK  *v4AddrMask;
    FWP_V6_ADDR_AND_MASK  *v6AddrMask;
    FWP_RANGE0            *rangeValue;
  };
} FWP_CONDITION_VALUE0;

Members

type

The type of data that is described by the structure. For the possible values for this data member, see FWP_DATA_TYPE.

uint8

An unsigned 8-bit value. Used when the Type member is set to FWP_UINT8.

uint16

An unsigned 16-bit value. Used when the Type member is set to FWP_UINT16.

uint32

An unsigned 32-bit value. Used when the Type member is set to FWP_UINT32.

uint64

A pointer to an unsigned 64-bit value. Used when the Type member is set to FWP_UINT64.

int8

A signed 8-bit value. Used when the Type member is set to FWP_INT8.

int16

A signed 16-bit value. Used when the Type member is set to FWP_INT16.

int32

A signed 32-bit value. Used when the Type member is set to FWP_INT32.

int64

A pointer to a signed 64-bit value. Used when the Type member is set to FWP_INT64.

float32

A single-precision floating point value. Used when the Type member is set to FWP_FLOAT.

double64

A pointer to a double-precision floating-point value. Used when the Type member is set to FWP_DOUBLE.

byteArray16

A pointer to an FWP_BYTE_ARRAY16 structure. Used when the Type member is set to FWP_BYTE_ARRAY16_TYPE.

byteBlob

A pointer to an FWP_BYTE_BLOB structure. Used when the Type member is set to FWP_BYTE_BLOB_TYPE.

sid

A pointer to a security identifier (SID) structure. Used when the Type member is set to FWP_SID. For more information about the SID structure, see the description for the SID structure in the Microsoft Windows SDK documentation.

sd

A pointer to an FWP_BYTE_BLOB structure that describes a security descriptor. Used when the Type member is set to FWP_SECURITY_DESCRIPTOR_TYPE.

tokenInformation

A pointer to an FWP_TOKEN_INFORMATION structure. Used when the Type member is set to FWP_TOKEN_INFORMATION_TYPE.

tokenAccessInformation

A pointer to an FWP_BYTE_BLOB structure that describes token access information. Used when the Type member is set to FWP_TOKEN_ACCESS_INFORMATION_TYPE.

unicodeString

A pointer to a null-terminated string of Unicode characters. Used when the Type member is set to FWP_UNICODE_STRING_TYPE.

byteArray6

A pointer to an FWP_BYTE_ARRAY6 structure. Used when the Type member is set to FWP_BYTE_ARRAY6_TYPE.

v4AddrMask

A pointer to an FWP_V4_ADDR_AND_MASK structure. Used when the Type member is set to FWP_V4_ADDR_MASK.

v6AddrMask

A pointer to an FWP_V6_ADDR_AND_MASK structure. Used when the Type member is set to FWP_V6_ADDR_MASK.

rangeValue

A pointer to an FWP_RANGE0 structure. Used when the Type member is set to FWP_RANGE_TYPE.

Remarks

An FWP_CONDITION_VALUE0 structure is contained within an FWPS_FILTER_CONDITION0 structure and specifies the condition value for the filtering condition.

Requirements

Version

Available starting with Windows Vista.

Header

Fwptypes.h (include Fwpsk.h)

See also

FWP_BYTE_ARRAY16
FWP_BYTE_ARRAY6
FWP_BYTE_BLOB
FWP_DATA_TYPE
FWP_RANGE0
FWP_TOKEN_INFORMATION
FWP_V4_ADDR_AND_MASK
FWP_V6_ADDR_AND_MASK
FWPS_FILTER_CONDITION0

 

 

Send comments about this topic to Microsoft

Show: