IDirectMusicLoader::ClearCache

The IDirectMusicLoader::ClearCache method tells the loader to release all references to a particular type of object.

HRESULT ClearCache(
  REFGUID rguidClass 
);
 

Parameters

rguidClass
Address of (C) or reference to (C++) the identifier of class of objects to clear. Optionally, GUID_DirectMusicAllTypes specifies all types.

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 IDirectMusicLoader::EnableCache method to turn off automatic caching.

To clear a single object from the cache, call the IDirectMusicLoader::ReleaseObject method.

QuickInfo

  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.

See Also

IDirectMusicLoader::CacheObject, Caching Objects