Share via


MI_OperationCallback_Class function pointer

Optional instance callback to get classes and class options from an operation.

Syntax

typedef void ( MI_CALL *MI_OperationCallback_Class)(
  _In_opt_       MI_Operation *operation,
  _In_           void         *callbackContext,
  _In_opt_ const MI_Class     *classResult,
                 MI_Boolean   moreResults,
  _In_           MI_Result    resultCode,
  _In_opt_ const MI_Char      *errorString,
  _In_opt_ const MI_Instance  *errorDetails,
  _In_opt_       MI_Result    (MI_CALL * resultAcknowledgement)(_In_ MI_Operation *operation)
);

Parameters

  • operation [in, optional]
    TBD

  • callbackContext [in]
    A client specific context that is used to correlate the callback to the associated operation.

  • classResult [in, optional]
    TBD

  • moreResults
    TBD

  • resultCode [in]
    TBD

  • errorString [in, optional]
    TBD

  • errorDetails [in, optional]
    TBD

  • (MI_CALL * resultAcknowledgement)(_In_ MI_Operation *operation) [in, optional]
    The operation that returns the result from this callback. Call this operation when done with the class. Not doing so will result in no more results being received and will stop the operation from shutting down. All parameters are valid until you call this operation.

Return value

This function pointer does not return a value.

Remarks

Registering for this callback will cause asynchronous notification when results of a class operations are completed. For enumerations this callback is called for each result.

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

See also

MI_OperationCallback

MI_Class

MI_Instance

MI_Operation

MI_Result