MI_SessionCallbacks structure (mi.h)

A container for callback function pointers that handle logging and error messages.

Syntax

typedef struct _MI_SessionCallbacks {
  void  *callbackContext;
  void(MI_Application *application, void *callbackContext,MI_Uint32 channel, const MI_Char *message) * )(writeMessage;
  void(MI_Application *application, void *callbackContext,MI_Instance *instance) * )(writeError;
} MI_SessionCallbacks;

Members

callbackContext

A client-specific context that is passed to all of the callbacks. This is used to correlate the callback to the associated operation.

writeMessage

The CIM extension callback for receiving logging from the session creation. All parameters are valid only for the lifetime of the callback.

writeError

The CIM extension callback for errors. The session version of this function is informative only. The session will fail to create and will return an error. All parameters are valid only for the lifetime of the callback.

Remarks

This is the structure that holds all callback function pointers. Fill in the ones you want to receive. All callbacks are CIM extensions for tracking logging and error messages.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
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