Platform SDK: DirectX |
The IDirectMusicGraph::InsertTool method inserts a tool in the graph.
HRESULT InsertTool( IDirectMusicTool * pTool, DWORD * pdwPChannels, DWORD cPChannels, LONG lIndex );
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_ALREADY_EXISTS |
E_OUTOFMEMORY |
E_POINTER |
The reference count of the tool is incremented.
This method calls IDirectMusicTool::Init.
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.