IDirectMusicObject::GetDescriptor

The IDirectMusicObject::GetDescriptor method retrieves the object's internal description.

The method takes a DMUS_OBJECTDESC structure and fills in everything the object knows about itself.

HRESULT GetDescriptor(
  LPDMUS_OBJECTDESC pDesc
);
 

Parameters

pDesc
Address of a DMUS_OBJECTDESC structure to be filled with data about the object. Depending on the implementation of the object and how it was loaded from a file, some or all of the standard parameters will be filled by GetDescriptor. Check the flags in the dwValidData member to know which other members are valid.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method may return E_POINTER.

Remarks

For an example, see Getting Object Descriptors.

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

IDirectMusicObject::SetDescriptor