MI_OperationOptions_GetEnabledChannels function (mi.h)

Gets the list of previously enabled channels.

Syntax

MI_INLINE MI_Result MI_OperationOptions_GetEnabledChannels(
  [in]            MI_OperationOptions *options,
                  MI_Uint32           *channels,
  [in]            MI_Uint32           bufferLength,
  [out]           MI_Uint32           *channelCount,
  [out, optional] MI_Uint32           *flags
);

Parameters

[in] options

MI_OperationOptions structure.

channels

Returned buffer that contains the numbers of all enabled channels.

[in] bufferLength

The length, in elements, of the channels buffer. If 0, the returned channelCount value will reflect how large the channels buffer needs to be.

[out] channelCount

Number of enabled channels.

[out, optional] flags

Unused.

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