MI_OperationCallback_WriteError function pointer

Optional callback to receive write error messages from the server.

Syntax

typedef void ( MI_CALL *MI_OperationCallback_WriteError)(
  _In_     MI_Operation *operation,
  _In_opt_ void         *callbackContext,
  _In_     MI_Instance  *instance,
  _In_opt_ MI_Result    (MI_CALL * writeErrorResult)(_In_ MI_Operation *operation, MI_OperationCallback_ResponseType response)
);

Parameters

  • operation [in]
    TBD

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

  • instance [in]
    TBD

  • (MI_CALL * writeErrorResult)(_In_ MI_Operation *operation, MI_OperationCallback_ResponseType response) [in, optional]
    The operation that returns the result from this callback. The callback calls this method to return the response, whether from the current thread or from a different one. MI_TRUE tells the operation to continue, MI_FALSE tells the operation to abort. The application must call this method otherwise the request will not progress.

Return value

This function pointer does not return a value.

Remarks

CIM Extension callback reports an error and ask the user if the operation should continue.

All parameters are valid until the call into writeErrorResult().

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