MI_OperationOptions_DisableChannel function (mi.h)

Uses MI_Context_WriteMessage to disable logging to the specified channel.

Syntax

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

Parameters

[in, out] options

A pointer to a MI_OperationOptions structure.

[in] channel

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

MI_WRITEMESSAGE_CHANNEL_WARNING

Channel used to broadcast warning messages.

MI_WRITEMESSAGE_CHANNEL_VERBOSE

Channel used to broadcast verbose informational messages.

MI_WRITEMESSAGE_CHANNEL_DEBUG

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