MI_Context_ConstructParameters function (mi.h)

A provider calls this function to initialize a parameter's instance.

Syntax

MI_INLINE MI_Result MI_INLINE_CALL MI_Context_ConstructParameters(
  MI_Context          *context,
  const MI_MethodDecl *methodDecl,
  MI_Instance         *instance
);

Parameters

context

A pointer to the request context.

methodDecl

A pointer to the method declaration used to initialize the instance.

instance

A pointer to the returned instance.

Return value

This function returns MI_INLINE MI_Result MI_INLINE_CALL.

Remarks

You are responsible for reserving the memory for the instance (either on the stack or the heap). When you have finished using the instance, delete it by calling the MI_Instance_Destruct function.

Requirements

   
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