MI_Application_NewInstanceFromClass function (mi.h)

Creates a new MI_Instance object based on a class object.

Syntax

MI_INLINE MI_Result MI_Application_NewInstanceFromClass(
  [in]           MI_Application *application,
                 const MI_Char  *className,
  [in, optional] const MI_Class *classObject,
                 MI_Instance    **instance
);

Parameters

[in] application

A pointer to a handle returned from a call to the MI_Application_Initialize function.

className

A null-terminated string that represents the class name for the instance being created.

[in, optional] classObject

A pointer to the class object from which to create an instance.

instance

A pointer to the instance returned from this function call.

Return value

This function returns MI_INLINE MI_Result.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
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