MI_InstanceFT structure (mi.h)

A support structure used in the MI_Instance structure. Use the functions with the name prefix MI_Instance_ to manipulate these structures.

Syntax

typedef struct _MI_InstanceFT {
  MI_Result(const MI_Instance *self,MI_Instance **newInstance) * )(Clone;
  MI_Result()(MI_Instance *self) * Destruct;
  MI_Result()(MI_Instance *self) * Delete;
  MI_Result(const MI_Instance *self, const MI_ClassDecl *classDecl,MI_Boolean *flag) * )(IsA;
  MI_Result(const MI_Instance *self, const MI_Char **className) * )(GetClassName;
  MI_Result((MI_Instance *self, const MI_Char *nameSpace) * )SetNameSpace;
  MI_Result(const MI_Instance *self, const MI_Char **nameSpace) * )(GetNameSpace;
  MI_Result((const MI_Instance *self,MI_Uint32 *count) * )GetElementCount;
  MI_Result(MI_Instance *self, const MI_Char *name, const MI_Value *value,MI_Type type,MI_Uint32 flags) * )(AddElement;
  MI_Result(MI_Instance *self, const MI_Char *name, const MI_Value *value,MI_Type type,MI_Uint32 flags) * )(SetElement;
  MI_Result((MI_Instance *self,MI_Uint32 index, const MI_Value *value,MI_Type type,MI_Uint32 flags) * )SetElementAt;
  MI_Result(st MI_Instance *self, const MI_Char *name,MI_Value *value,MI_Type *type,MI_Uint32 *flags,MI_Uint32 *index) * )(conGetElement;
  MI_Result(st MI_Instance *self,MI_Uint32 index, const MI_Char **name,MI_Value *value,MI_Type *type,MI_Uint32 *flags) * )(conGetElementAt;
  MI_Result((MI_Instance *self, const MI_Char *name) * )ClearElement;
  MI_Result()(MI_Instance *self,MI_Uint32 index) * ClearElementAt;
  MI_Result(const MI_Instance *self, const MI_Char **name) * )(GetServerName;
  MI_Result((MI_Instance *self, const MI_Char *name) * )SetServerName;
  MI_Result(const MI_Instance *self,MI_Class **instanceClass) * )(GetClass;
} MI_InstanceFT;

Members

Clone

Creates a copy of the specified instance on the heap. See MI_Instance_Clone.

Destruct

Deletes an instance that was created on the stack. See MI_Instance_Destruct.

Delete

Deletes an instance that was created on the heap. See MI_Instance_Delete.

IsA

Determines if the instance self is an instance of the class given by classDecl. See MI_Instance_IsA.

GetClassName

Gets the class name of the specified instance. See MI_Instance_GetClassName.

SetNameSpace

Sets the namespace name of the specified instance. See MI_Instance_SetNameSpace.

GetNameSpace

Gets the namespace name of the specified instance. See MI_Instance_GetNameSpace.

GetElementCount

Gets the number of elements in an instance. See MI_Instance_GetElementCount.

AddElement

Adds a new property to a dynamic instance. See MI_Instance_AddElement.

SetElement

Set the value of the property with the given name in the given instance. See MI_Instance_SetElement.

SetElementAt

Set the value of the property at the given index of an instance. See MI_Instance_SetElementAt.

GetElement

Gets the value of the named element (CIM property). See MI_Instance_GetElement.

GetElementAt

Gets the value of the element (CIM property) at the specified index. See MI_Instance_GetElementAt.

ClearElement

Clears the value of the named element (CIM property) and sets it to Null. See MI_Instance_ClearElement.

ClearElementAt

Clears the value of the element (CIM property) at the specified index and sets it to Null. See MI_Instance_ClearElementAt.

GetServerName

Gets the server name from the specified instance. See MI_Instance_GetServerName.

SetServerName

Sets the server name of the specified instance. See MI_Instance_SetServerName.

GetClass

Gets the MI_Class associated with an instance. See MI_Instance_GetClass.

Requirements

   
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