Platform SDK: Broadcast Architecture |
The Disconnect method closes the connection between your application and either the VBI Inserter or the NIC, depending on whether you are using a CSendATVEFMulticast, CSendATVEFInserter, or CSendATVEFRouter object to transmit enhancements.
HRESULT Disconnect();
Returns S_OK if the method succeeds; otherwise, an error code is returned.
Destroying the CSendInserter, or CSendATVEFMulticast object also closes the connection to the inserter or NIC. You can use Disconnect, however, to close the connection without destroying the object.
In addition, changing the announcement of a connected object implicitly disconnects the object and has the same effect as calling Disconnect. You can change the announcement by calling the accessor methods exposed by IATVEFAnnouncement and setting new values.
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 98.
Header: Declared in atvefsnd.idl.
Import Library: Included as a resource in atvefsnd.dll.