Microsoft DirectX 8.1 (Visual Basic) |
Disconnects the Microsoft® DirectPlay® Voice client from the existing DirectPlay Voice session.
Disconnect(lFlags As Long)
If the method fails, Err.Number can be set to one of the following values.
DVERR_PENDING |
DVERR_ALREADYPENDING |
DVERR_INVALIDPARAM |
DVERR_NOTCONNECTED |
DVERR_INVALIDFLAGS |
DVERR_CONNECTABORTING |
DVERR_NOTINITIALIZED |
DVERR_TIMEOUT |
DVERR_SESSIONLOST |
On calling this method, all recording and playback is stopped. If a connection is being processed, it is canceled by this call.
If this method is called synchronously by setting the DVFLAGS_SYNC flag, the method does not return until the Disconnect completes.