?/TD>
Microsoft DirectX 9.0

IDirectPlayVoiceServer::SetSessionDesc Method


Sets the session settings.

Syntax

HRESULT SetSessionDesc(      

    PDVSESSIONDESC pSessionDesc );

Parameters

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

Return Value

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

DVERR_INVALIDOBJECTThe Microsoft?DirectPlay?object pointer is invalid.
DVERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.
DVERR_INVALIDPOINTERThe pointer specified is invalid.
DVERR_NOTHOSTINGThe object is not the host of the session.
DVERR_NOTINITIALIZEDThe IDirectPlayVoiceClient::Initialize or IDirectPlayVoiceServer::Initialize method must be called before calling this method.
DVERR_SESSIONLOSTThe transport has lost the connection to the session.


Remarks

After the DirectPlay voice session has started, only some of the session properties of the DVSESSIONDESC structure can be changed. For more information, see DVSESSIONDESC.



© 2002 Microsoft Corporation. All rights reserved.