|Microsoft DirectX 9.0|
The GetGraph method retrieves the toolgraph of a performance.
HRESULT GetGraph( IDirectMusicGraph** ppGraph );
Address of a variable that receives a pointer to the toolgraph.
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the error values shown in the following table.
The reference count of the graph is incremented.
The performance object implements IDirectMusicGraph directly This interface is used primarily to call the IDirectMusicGraph8::StampPMsg method directly on the performance. This has nothing to do with a graph object that might be embedded in the performance. If you want to access an embedded object, you are accessing a different IDirectMusicGraph interface because it is an interface on the embedded graph object, not the performance itself. To obtain an interface to an embedded audiopath, use the IDirectMusicAudioPath8::GetObjectInPath or IDirectMusicSegmentState8::GetObjectInPath method.
Header: Declared in dmusici.h.