Skip to main content
MI_Class_GetMethodAt function

Gets details of a method based on the method index.

Syntax


 MI_INLINE MI_Result MI_Class_GetMethodAt(
  _In_       const MI_Class *self,
  MI_Uint32 index,
  const _Outptr_result_z_ MI_Char **name,
  _Out_opt_  MI_QualifierSet *qualifierSet,
  _Out_opt_  MI_ParameterSet *parameterSet
);

Parameters

self [in]

A pointer to the class object from which the method information is to be retrieved.

index

Zero-based index of the requested method.

name

A pointer to a pointer to the returned name of the method. The memory associated with the name is valid until the class object is deleted. If this information is not needed, pass NULL for this parameter.

qualifierSet [out, optional]

A pointer to a variable to receive the returned qualifier set. This parameter is optional. The memory associated with the qualifier set is valid until the class object is deleted. When you have finished using the class qualifier set, delete the class object by calling the MI_Class_Delete function. If this information is not needed, pass NULL for this parameter.

parameterSet [out, optional]

A pointer to a variable to receive the returned parameter set. The parameter set also contains the return type and return type qualifier set. This parameter is optional. The memory associated with the parameter set is valid until the class object is deleted. When you have finished using the parameter set, delete the class object by calling the MI_Class_Delete function. If this information is not needed, pass NULL for this parameter.

Return value

Return codeDescription
MI_RESULT_OK

The operation succeeded.

MI_RESULT_SERVER_LIMITS_EXCEEDED

There is not enough memory to complete the request.

MI_RESULT_INVALID_PARAMETER

One or more parameters to the function were not valid.

MI_RESULT_FAILED

Some kind of failure not covered by other MI_Result error codes.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

Header

Mi.h