MI_PropertyDecl structure (mi.h)

Represents a class property (element) in a class's declaration.

Syntax

typedef struct _MI_PropertyDecl {
  MI_Uint32             flags;
  MI_Uint32             code;
  MI_CONST MI_Char      *name;
  MI_Qualifier MI_CONST I_CONST * *Mqualifiers;
  MI_Uint32             numQualifiers;
  MI_Uint32             type;
  MI_CONST MI_Char      *className;
  MI_Uint32             subscript;
  MI_Uint32             offset;
  MI_CONST MI_Char      *origin;
  MI_CONST MI_Char      *propagator;
  MI_CONST void         *value;
} MI_PropertyDecl;

Members

flags

MI_FLAG_PROPERTY ((1 << 2))

Indicates structure is a property.

MI_FLAG_KEY ((1 << 12))

Indicate structure is a key property.

code

Hash code: (name[0] << 16) | (name[len-1] << 8) | len

name

Name of this property.

qualifiers

Qualifier set for this property.

numQualifiers

Number of qualifiers.

type

Type of property.

className

Name of reference class or embedded instance class name.

subscript

If property is a fixed length array, then this value will hold the length of the array.

offset

Offset of this property field from the start of the MI_Instance.

origin

Ancestor class that first defined a property with this name.

propagator

Ancestor class that last defined a property with this name.

value

Default value of this property.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header mi.h
Redistributable Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2