Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceClient8.Disconnect

Disconnects the Microsoft® DirectPlay® Voice client from the existing DirectPlay Voice session.

Disconnect(lFlags As Long)

Parts

lFlags
You can specify the following flag.
DVFLAGS_SYNC
Do not return until the operation is completed.

Error Codes

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

Remarks

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.