|Microsoft DirectX 9.0|
The ClearCache method removes all saved references to a specified object type.
HRESULT ClearCache( REFGUID rguidClass );
Reference to (C++) or address of (C) the identifier of the class of objects to clear, or GUID_DirectMusicAllTypes to clear all types. For a list of standard loadable classes, see IDirectMusicLoader8.
The method returns S_OK.
This method clears all objects that are currently being held, but does not turn off caching. Use the IDirectMusicLoader8::EnableCache method to turn off automatic caching.
To clear a single object from the cache, call the IDirectMusicLoader8::ReleaseObject method.
Header: Declared in dmusici.h.