Compartilhar via


FWP_VALUE0 (Compact 2013)

3/26/2014

This structure defines a generic data value, which you can use primarily to supply incoming values to the Windows Filtering Platform (WFP) filter engine.

Syntax

typedef struct FWP_VALUE0_ {
  FWP_DATA_TYPE type;
  union {
    ;      // case(FWP_EMPTY)
    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_VALUE0;

Members

  • type
    Type of data for this value. For more information, see FWP_DATA_TYPE.
  • ( unnamed union )
    switch_type(FWP_DATA_TYPE), switch_is(type).
  • uint8
    case(FWP_UINT8)

    An unsigned 8-bit integer.

  • uint16
    case(FWP_UINT16)

    An unsigned 16-bit integer.

  • uint32
    case(FWP_UINT32)

    An unsigned 32-bit integer.

  • uint64
    case(FWP_UINT64)

    An unsigned 64-bit integer.

  • int8
    case(FWP_INT8)

    A signed 8-bit integer.

  • int16
    case(FWP_INT16)

    A signed 16-bit integer.

  • int32
    case(FWP_INT32)

    A signed 32-bit integer.

  • int64
    case(FWP_INT64)

    A signed 64-bit integer.

  • float32
    case(FWP_FLOAT)

    A single-precision floating point value.

  • double64
    case(FWP_DOUBLE)

    A pointer to a double-precision floating point value.

  • byteArray16
    case(FWP_BYTE_ARRAY16_TYPE)

    Pointer to an FWP_BYTE_ARRAY16 structure.

  • byteBlob
    case(FWP_BYTE_BLOB_TYPE)

    Pointer to an FWP_BYTE_BLOB structure.

  • sid
    case(FWP_SID)

    Pointer to a system identifier (SID).

  • sd
    case(FWP_SECURITY_DESCRIPTOR_TYPE)

    Pointer to a security descriptor contained in an FWP_BYTE_BLOB structure.

  • tokenInformation
    case(FWP_TOKEN_INFORMATION_TYPE).
  • tokenAccessInformation
    case(FWP_TOKEN_ACCESS_INFORMATION_TYPE)

    Pointer to token access information contained in an FWP_BYTE_BLOB structure.

  • unicodeString
    case(FWP_UNICODE_STRING_TYPE)

    Pointer to a null-terminated Unicode string.

Remarks

When you store IP addresses in FWP_UINT32 (uint32) format, or when you store IP port numbers in FWP_UINT16 (uint16) format, they are stored in host order, not network order.

Requirements

Header

fwpmu.h

See Also

Reference

WFP Shared Structures

Other Resources

Windows Filtering Platform