IDirectMusicPort::SetChannelPriority

This method is used to set the priority of a MIDI channel. For an overview, see Channels.

HRESULT SetChannelPriority(
  DWORD dwChannelGroup,
  DWORD dwChannel,
  DWORD dwPriority
);

Parameters

  • dwChannelGroup
    Group that the channel is in. This value must be 1 or greater.
  • dwChannel
    Index of the channel on the group.
  • dwPriority
    The priority ranking. For more information, see IDirectMusicPort::GetChannelPriority.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return one of the following error values:

E_FAIL
E_INVALIDARG
E_OUTOFMEMORY
E_NOTIMPL

Requirements

OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusicc.h.
Link Library: Dmusic.lib.

See Also

IDirectMusicPort::GetChannelPriority | DMUS_CHANNEL_PRIORITY_PMSG

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.