MI_OperationOptions_EnableChannel function (mi.h)

Uses MI_Context_WriteMessage to enable logging to the specified channel.

Syntax

MI_INLINE MI_Result MI_OperationOptions_EnableChannel(
  [in, out] MI_OperationOptions *options,
  [in]      MI_Uint32           channel
);

Parameters

[in, out] options

A pointer to a MI_OperationOptions structure.

[in] channel

Channel to enable, which can be any of the following.

MI_WRITEMESSAGE_CHANNEL_WARNING (0)

Channel used to broadcast warning messages.

MI_WRITEMESSAGE_CHANNEL_VERBOSE (1)

Channel used to broadcast verbose informational messages.

MI_WRITEMESSAGE_CHANNEL_DEBUG (2)

Channel used to broadcast debugging information.

Return value

A value of the MI_Result enumeration that specifies the function return code. This can be one of the following codes.

Requirements

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