Microsoft DirectX 8.1 (C++) |
The Init method initializes the tool. This method is called when the tool is inserted into the graph, giving the tool an opportunity to perform any necessary initialization.
Syntax
HRESULT Init(
IDirectMusicGraph* pGraph
);
Parameters
pGraph
Calling graph.
Return Values
Return values are determined by the implementation. If the method succeeds, it returns S_OK. If it fails, the method can return one of the error values shown in the following table.
Return code |
E_FAIL |
E_NOTIMPL |
Remarks
Because a tool can be inserted into more than one graph, this method must be able to deal gracefully with multiple calls.
Be sure not to create a circular reference to the graph represented by pGraph. For more information, see DirectMusic Tools.
Requirements
Header: Declared in dmplugin.h.
See Also