| Platform SDK: DirectX | 
The IDirectMusicPerformance::DownloadInstrument method downloads DLS data for an instrument to a port.
HRESULT DownloadInstrument( IDirectMusicInstrument* pInst, DWORD dwPChannel, IDirectMusicDownloadedInstrument** ppDownInst, DMUS_NOTERANGE* pNoteRanges, DWORD dwNumNoteRanges, IDirectMusicPort** ppPort, DWORD* pdwGroup, DWORD* pdwMChannel );
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values:
| E_INVALIDARG | 
| E_POINTER | 
Most applications do not need to use this method because instrument downloading is normally handled by bands. See Downloading and Unloading Bands.
The method returns E_INVALIDARG if the PChannel is not assigned to a port.
To prevent loss of resources, unload the instrument by using the IDirectMusicPort::UnloadInstrument method when the instrument is no longer needed.
  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.
IDirectMusicPort::DownloadInstrument, IDirectMusicPort::UnloadInstrument, Working with Instruments