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 
);
 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 | 
  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.