MI_OperationCallback_Instance function pointer

Optional instance callback to get asynchronous results from an operation.

Syntax

typedef void ( MI_CALL *MI_OperationCallback_Instance)(
  _In_opt_       MI_Operation *operation,
  _In_           void         *callbackContext,
  _In_opt_ const MI_Instance  *instance,
                 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.

  • instance [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 of this method to be called for instance operation results for Get, Modify, Create, Delete, Enumeration and Invoke operations. For Enumeration this callback will be called once for each available result.

For method invocations, the instance will be a property bag for each of the out parameters of the method.

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_Instance

MI_Operation

MI_Result