Platform SDK: DirectX

IDirectMusicLoader::ReleaseObject

The IDirectMusicLoader::ReleaseObject method releases the loader's reference to the object.

HRESULT ReleaseObject(
  IDirectMusicObject * pObject
);

Parameters

pObject
Address of a variable that contains the object to release.

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:

E_POINTER
DMUS_E_LOADER_OBJECTNOTFOUND

Remarks

ReleaseObject is the reciprocal of IDirectMusicLoader::CacheObject.

Objects can be cached explicitly by using the CacheObject method, or automatically by using the IDirectMusicLoader::EnableCache method.

To tell the loader to flush all objects of a particular type, call the IDirectMusicLoader::ClearCache method.

Requirements

  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::GetObject, Caching Objects