Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a new MI_Instance object to be passed to various MI operation APIs that require instances.
Syntax
MI_INLINE MI_Result MI_Application_NewInstance(
  [in]           MI_Application     *application,
                 const MI_Char      *className,
  [in, optional] const MI_ClassDecl *classRTTI,
                 MI_Instance        **instance
);
Parameters
[in] application
A pointer to a handle returned from a call to the MI_Application_Initialize function.
className
The class name for the instance being created.
[in, optional] classRTTI
A pointer to optional run time type information for the object being created.
instance
A pointer to the instance returned from this function call.
Return value
This function returns MI_INLINE MI_Result.
Remarks
When you have finished using the instance created by this call, delete it by calling the MI_Instance_Delete function.
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 |