MI_MethodDecl structure (mi.h)

Represents a CIM method.

Syntax

typedef struct _MI_MethodDecl {
  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_ParameterDecl MI_CONST I_CONST * *Mparameters;
  struct                     _MI_ParameterDecl;
  MI_Uint32                  numParameters;
  MI_Uint32                  size;
  MI_Uint32                  returnType;
  MI_CONST MI_Char           *origin;
  MI_CONST MI_Char           *propagator;
  _MI_SchemaDecl MI_CONST    *schema;
  struct                     _MI_SchemaDecl;
  MI_MethodDecl_Invoke       function;
} MI_MethodDecl;

Members

flags

Flags:

MI_FLAG_METHOD

MI_FLAG_STATIC

code

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

name

The method name.

qualifiers

The qualifiers of the method.

_MI_Qualifier

numQualifiers

The number of qualifiers.

parameters

The parameters of the method.

_MI_ParameterDecl

numParameters

The number of parameters.

size

The size of the structure.

returnType

The post result type of this method.

origin

The ancestor class that first defined a method with this name.

propagator

The ancestor class that last defined a method with this name.

schema

The schema this class belongs to.

_MI_SchemaDecl

function

The extrinsic function that implements this method.

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

See also

MI_FeatureDecl

MI_MethodDecl_Invoke

MI_ParameterDecl

MI_Qualifier

MI_SchemaDecl