Microsoft DirectX 9.0 |
The Disconnect method breaks the current pin connection.
The Filter Graph Manager calls this method when it disconnects two filters. Applications and filters should not call this method. Instead, call the IFilterGraph::Disconnect method on the Filter Graph Manager.
Syntax
HRESULT Disconnect(void);
Return Value
Returns an HRESULT value. Possible values include the following.
Value | Description |
S_FALSE | The pin was not connected. |
S_OK | Success. |
VFW_E_NOT_STOPPED | The filter is active. |
Remarks
This method fails if the filter is paused or running. If the pin supports the IPinConnection interface, call IPinConnection::DynamicDisconnect to disconnect the pin when the filter is paused or running.
This method does not disconnect the other pin in the pin connection.
See Also