The IDirectMusicSegment::RemoveTrack method removes a track from the segment's track list.
HRESULT RemoveTrack(
IDirectMusicTrack* pTrack
);
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.
The track is released when removed.
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.