Microsoft DirectX 9.0 |
The ClearCache method removes all saved references to a specified object type.
Syntax
HRESULT ClearCache(
REFGUID rguidClass
);
Parameters
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.
Return Values
The method returns S_OK.
Remarks
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.
Requirements
Header: Declared in dmusici.h.
See Also