|Microsoft DirectX 9.0|
Given a file stream, the ParseDescriptor method scans the file for data that it can store in the DMUS_OBJECTDESC structure. All members that are supplied are marked with the appropriate flags in dwValidData.
This method is primarily used by the loader when scanning a directory for objects, and is not normally used directly by an application. However, if an application implements an object type in DirectMusic, it should support this method.
HRESULT ParseDescriptor( LPSTREAM pStream, LPDMUS_OBJECTDESC pDesc );
Stream source for the file.
Address of a DMUS_OBJECTDESC structure that receives data about the file.
If the method succeeds, the return value is S_OK or DMUS_S_GARBAGE_COLLECTED. See Garbage Collection.
If it fails, the method can return one of the error values shown in the following table.
Header: Declared in dmusici.h.