次の方法で共有


IDirectMusicPerformance8::SetGraph

The SetGraph method replaces the performance's toolgraph.

Syntax

HRESULT SetGraph(
  IDirectMusicGraph* pGraph
);

Parameters

pGraph

Toolgraph to set. Can be set to NULL to clear the graph from the performance.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return E_POINTER.

Remarks

Any messages flowing through tools in the current toolgraph are deleted.

Because the graph's reference count is incremented by this method, it is safe to release the original reference.

Requirements

**  Header:** Dmusici.h
  Library: Dmime.dll, Dmimed.dll

See Also

© 2004 Microsoft Corporation. All rights reserved.