IDirectMusicSegment::RemoveTrack

The IDirectMusicSegment::RemoveTrack method removes a track from the segment's track list.

HRESULT RemoveTrack(
  IDirectMusicTrack* pTrack
);
 

Parameters

pTrack
The track to remove from the segment's track list.

Return Values

If the method succeeds, the return value is S_OK, or S_FALSE if the specified track is not in the track list.

If the method fails, the return value may be E_POINTER.

Remarks

The track is released when removed.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusici.h.

See Also

IDirectMusicSegment::InsertTrack