Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceServer8.StopSession

Stops the Microsoft® DirectPlay® Voice session.

StopSession(lFlags As Long)

Parts

lFlags
The following flag can be set.
DVFLAGS_NOHOSTMIGRATE
The host will not migrate regardless of session and transport settings. Use this flag to shut down the voice session completely.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DVERR_INVALIDPARAM
DVERR_ALREADYPENDING
DVERR_SESSIONLOST
DVERR_NOTINITIALIZED
DVERR_NOTHOSTING
DVERR_INVALIDFLAGS
DVERR_INVALIDOBJECT

Remarks

This method returns the DVERR_ALREADYPENDING error value if it is called while another thread is processing a StopSession request.