Microsoft DirectX 8.0 (C++)

IDirectMusicSegment8::GetGraph

Retrieves the segment's toolgraph.

HRESULT GetGraph(
  IDirectMusicGraph** ppGraph
);

Parameters

ppGraph
Address of a variable that receives a pointer to the toolgraph.

Return Values

If the method succeeds, the return value is S_OK.

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

DMUS_E_NOT_FOUND
E_POINTER

Remarks

If there is no graph in the segment, the method returns DMUS_E_NOT_FOUND.

The reference count of the toolgraph is incremented.

Requirements

  Header: Declared in dmusici.h.

See Also

IDirectMusicSegment8::SetGraph