Microsoft DirectX 8.1 (C++)

IDirectPlayVoiceServer::SetSessionDesc

Sets the session settings.

HRESULT SetSessionDesc(
PDVSESSIONDESC pSessionDesc
);

Parameters

pSessionDesc
[in] Pointer to a DVSESSIONDESC structure that contains the session description.

Return Values

Returns DV_OK if successful, or one of the following error values.

DVERR_INVALIDOBJECT
DVERR_INVALIDPARAM
DVERR_INVALIDPOINTER
DVERR_NOTHOSTING
DVERR_NOTINITIALIZED
DVERR_SESSIONLOST

Remarks

After the Microsoft® DirectPlay® voice session has started, not all the session properties of the DVSESSIONDESC structure can be changed. For more information, see DVSESSIONDESC.

Requirements

  Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
  Windows 98/Me: Available as a redistributable for Windows 98 and later.
  Header: Declared in Dvoice.h.