Expand Minimize

MI_ClassDecl structure

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;
  const MI_Char                              *name;
  struct _MI_Qualifier MI_CONST* MI_CONST  *qualifiers;
  MI_Uint32                                  numQualifiers;
  struct _MI_PropertyDecl MI_CONST* MI_CONST  *properties;
  MI_Uint32                                  numProperties;
  MI_Uint32                                  size;
  const MI_Char                              *superClass;
  MI_ClassDecl MI_CONST                      *superClassDecl;
  struct _MI_MethodDecl MI_CONST* MI_CONST  *methods;
  MI_Uint32                                  numMethods;
  struct _MI_SchemaDecl MI_CONST  *schema;
  const MI_ProviderFT                        *providerFT;
  MI_Class                                   *owningClass;
} MI_ClassDecl;

Members

flags

Flags can consist of values from following table.

ValueMeaning
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.

numQualifiers

Length of qualifiers array.

properties

The properties of this object.

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.

numMethods

Number of methods in this class.

schema

Pointer to schema this class belongs to.

providerFT

Provider functions.

owningClass

Owning MI_Class object, if any.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

Header

Mi.h

 

 

Show:
© 2014 Microsoft