EC_VARIANT structure (evcoll.h)

The EC_VARIANT structure contains event collector data (subscription data) or property values.

Syntax

typedef struct _EC_VARIANT {
  union {
    BOOL                            BooleanVal;
    UINT32                          UInt32Val;
    ULONGLONG                       DateTimeVal;
    LPCWSTR                         StringVal;
    PBYTE                           BinaryVal;
    BOOL                            *BooleanArr;
    INT32                           *Int32Arr;
    LPWSTR                          *StringArr;
    EC_OBJECT_ARRAY_PROPERTY_HANDLE PropertyHandleVal;
  };
  DWORD Count;
  DWORD Type;
} EC_VARIANT, *PEC_VARIANT;

Members

BooleanVal

A Boolean value.

UInt32Val

An unsigned 32-bit integer value.

DateTimeVal

A ULONGLONG value.

StringVal

A null-terminated Unicode string.

BinaryVal

A hexadecimal binary value.

BooleanArr

A pointer to an array of Boolean values.

Int32Arr

A pointer to an array of signed 32-bit integer values.

StringArr

A pointer to an array of null-terminated strings.

PropertyHandleVal

Count

The number of elements (not length) in bytes. Used for arrays and binary or string types.

Type

The type of the data in the structure. Use a value from the EC_VARIANT_TYPE enumeration to specify the type. When the type is specified, you can use any of the union members to access the actual value. For example, if the type is EcVarTypeDateTime, then the value is DateTimeVal in the EC_VARIANT structure.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header evcoll.h