IDirectMusicPort::UnloadInstrument
This method is used to unload a previously downloaded DLS instrument.
HRESULT UnloadInstrument(
IDirectMusicDownloadedInstrument* pDownloadedInstrument
);
Parameters
- pDownloadedInstrument
Address of an IDirectMusicDownloadedInstrument interface, obtained when the instrument was downloaded by calling the IDirectMusicPort::DownloadInstrument method.
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:
DMUS_E_NOT_DOWNLOADED_TO_PORT |
E_POINTER |
E_NOTIMPL |
Remarks
This method must be called to free memory allocated by IDirectMusicPort::DownloadInstrument.
Requirements
OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusicc.h.
Link Library: Dmusic.lib.
See Also
Working with Instruments | IDirectMusicDownloadedInstrument | IDirectMusicPort::DownloadInstrument
Last updated on Monday, April 12, 2004
© 1992-2002 Microsoft Corporation. All rights reserved.