MI_Application_NewParameterSet function (mi.h)

Creates a new parameter set.

Syntax

MI_INLINE MI_Result MI_Application_NewParameterSet(
  [in]           MI_Application     *application,
  [in, optional] const MI_ClassDecl *classRTTI,
                 MI_Instance        **instance
);

Parameters

[in] application

A pointer to a handle returned from the MI_Application_Initialize function.

[in, optional] classRTTI

A pointer to optional run-time type information (RTTI) that defines the property set. Generally, this is NULL for parameter sets. If there is no RTTI, call the MI_Instance_AddElement function to add extra parameters. If RTTI is passed in, use the MI_Instance_SetElement function to set the values of the parameters.

instance

A pointer to 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 parameter set, free the instance 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