IDirectMusicLoader::SetObject

The IDirectMusicLoader::SetObject method tells the loader where to find an object when it is later referenced by another object being loaded. For an overview, see Setting Objects.

HRESULT SetObject(
  LPDMUS_OBJECTDESC pDESC 
);
 

Parameters

pDESC
Address of a DMUS_OBJECTDESC structure describing the object.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method may return one of the following error values:

E_FAIL
E_INVALIDARG
E_OUTOFMEMORY
E_POINTER
DMUS_E_LOADER_NOCLASSID
DMUS_E_LOADER_FAILEDOPEN
DMUS_E_LOADER_FAILEDCREATE
DMUS_E_LOADER_FORMATNOTSUPPORTED
REGDB_E_CLASSNOTREG

Remarks

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::GetObject