MI_ClassDecl structure (mi.h)
This structure outlines the class declaration. It contains class name and hierarchy, properties, qualifiers, and methods.
Syntax
typedef struct _MI_ClassDecl {
MI_Uint32 flags;
MI_Uint32 code;
MI_CONST MI_Char *name;
_MI_Qualifier MI_CONST I_CONST * *Mqualifiers;
struct _MI_Qualifier;
MI_Uint32 numQualifiers;
_MI_PropertyDecl MI_CONST I_CONST * *Mproperties;
struct _MI_PropertyDecl;
MI_Uint32 numProperties;
MI_Uint32 size;
MI_CONST MI_Char *superClass;
MI_ClassDecl MI_CONST *superClassDecl;
_MI_MethodDecl MI_CONST I_CONST * *Mmethods;
struct _MI_MethodDecl;
MI_Uint32 numMethods;
_MI_SchemaDecl MI_CONST *schema;
struct _MI_SchemaDecl;
MI_CONST MI_ProviderFT *providerFT;
MI_Class *owningClass;
} MI_ClassDecl;
Members
flags
Flags can consist of values from following list.
MI_FLAG_CLASS ((1 << 0))
Indicates the structure describes a class.
MI_FLAG_ASSOCIATION ((1 << 4))
Indicates the class is also an association class.
MI_FLAG_INDICATION ((1 << 5))
Indicates the class is also an indication class.
MI_FLAG_ABSTRACT ((1 << 17))
Indicates the class is abstract.
MI_FLAG_TERMINAL ((1 << 18))
Indicates class cannot be derived from.
code
Hash code: (name[0] << 16) | (name[len-1] << 8) | len
name
Name of this feature.
qualifiers
Describes extra metadata for classes, properties, methods, and parameters.
_MI_Qualifier
numQualifiers
Length of qualifiers array.
properties
The properties of this object.
_MI_PropertyDecl
numProperties
The number of properties of this object.
size
Size of structure described by MI_ClassDecl.
superClass
Parent class name.
superClassDecl
The classDecl for the parent class superClass.
methods
The methods of this class.
_MI_MethodDecl
numMethods
Number of methods in this class.
schema
Pointer to schema this class belongs to.
_MI_SchemaDecl
providerFT
Provider functions.
owningClass
Owning MI_Class object, if any.
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 |