Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

MI_ClassFT structure

A support structure used in the MI_Class structure. Use the functions with the name prefix "MI_Class_" to manipulate these structures.

Syntax


typedef struct _MI_ClassFT {
  MI_Result (MI_CALL *GetClassName)(
      _In_ const MI_Class *self, 
      _Out_ const MI_Char **className);
  MI_Result (MI_CALL *GetNameSpace)(
      _In_ const MI_Class *self, 
      _Out_ const MI_Char **nameSpace);
  MI_Result (MI_CALL *GetServerName)(
      _In_ const MI_Class *self, 
      _Out_ const MI_Char **serverName);
  MI_Result (MI_CALL *GetElementCount)(
      _In_ const MI_Class *self, 
      _Out_ MI_Uint32 *count);
  MI_Result (MI_CALL *GetElement)(
      _In_ const MI_Class *self, 
      _In_ const MI_Char *name, 
      _Out_opt_ MI_Value *value, 
      _Out_opt_ MI_Boolean *valueExists, 
      _Out_opt_ MI_Type *type, 
      _Out_opt_ MI_QualifierSet *qualifierSet, 
      _Out_opt_ MI_Uint32 *flags, 
      _Out_opt_ MI_Uint32 *index);
  MI_Result (MI_CALL *GetElementAt)(
      _In_ const MI_Class *self, 
      MI_Uint32 index, 
      _Out_opt_ const MI_Char **name, 
      _Out_opt_ MI_Value *value, 
      _Out_opt_ MI_Boolean *valueExists, 
      _Out_opt_ MI_Type *type, 
      _Out_opt_ MI_QualifierSet *qualifierSet, 
      _Out_opt_ MI_Uint32 *flags);
  MI_Result (MI_CALL *GetClassQualifierSet)(
      _In_ const MI_Class *self, 
      _Out_opt_ MI_QualifierSet *qualifierSet);
  MI_Result (MI_CALL *GetMethodCount)(
      _In_ const MI_Class *self, 
      _Out_ MI_Uint32 *count);
  MI_Result (MI_CALL *GetMethodAt)(
      _In_ const MI_Class *self, 
      MI_Uint32 index, 
      _Out_ const MI_Char **name, 
      _Out_opt_ MI_QualifierSet *qualifierSet, 
      _Out_opt_ MI_ParameterSet *parameterSet);
  MI_Result (MI_CALL *GetMethod)(
      _In_ const MI_Class *self, 
      _In_ const MI_Char name, 
      _Out_opt_ MI_QualifierSet **qualifierSet, 
      _Out_opt_ MI_ParameterSet *parameterSet, 
      _Out_opt_ MI_Uint32 *index);
  MI_Result (MI_CALL *GetParentClassName)(
      _In_ const MI_Class *self, 
      _Out_ const MI_Char **name);
  MI_Result (MI_CALL *GetParentClass)(
      _In_ const MI_Class *self, 
      _Out_ MI_Class **parentClass);
  MI_Result (MI_CALL *Delete)(_Inout_ MI_Class *self);
  MI_Result (MI_CALL *Clone)(
      _In_ const MI_Class *self, 
      _Out_ MI_Class **newClass);
} MI_ClassFT;

Members

GetClassName

Retrieves the class name of the class. See MI_Class_GetClassName.

GetNameSpace

Retrieves the namespace of the class. See MI_Class_GetNameSpace.

GetServerName

Retrieves the server name of the class. See MI_Class_GetServerName .

GetElementCount

Retrieves the number of elements in a class. See MI_Class_GetElementCount .

GetElement

Retrieves information about a named class element. See MI_Class_GetElement.

GetElementAt

Retrieves information about a specific class element given the element index (Indexes start from 0). See MI_Class_GetElementAt.

GetClassQualifierSet

Retrieve an object from a class that allows the class qualifiers to be queried. See MI_Class_GetClassQualifierSet.

GetMethodCount

Retrieves the number of class methods. See MI_Class_GetMethodCount.

GetMethodAt

Get method information based on a method index. See MI_Class_GetMethodAt.

GetMethod

Get method information based on a method name. See MI_Class_GetMethod.

GetParentClassName

Get the parent class name of the class. See MI_Class_GetParentClassName.

GetParentClass

Get the parent class for the specified class. See MI_Class_GetParentClass.

Delete

Delete an MI_Class object. See MI_Class_Delete.

Clone

Clones an MI_Class object. See MI_Class_Clone.

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:
© 2015 Microsoft