DirectX SDK |
The IDirectPlay4::SetGroupConnectionSettings method sets the connection settings for a session that will be launched from this group. This method can only be used in a lobby session.
HRESULT SetGroupConnectionSettings( DWORD dwFlags, DPID idGroup, LPDPLCONNECTION lpConnection );
Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_ACCESSDENIED |
DPERR_CONNECTIONLOST |
DPERR_INVALIDGROUP |
DPERR_INVALIDPARAMS |
DPERR_UNSUPPORTED |
Call IDirectPlay4::GetGroupConnectionSettings before calling SetGroupConnectionSettings to see if any of the DPLCONNECTION structure members already have default values (non-NULL or nonzero). If so, you may get an error if you try to change these default values.
You do not have to set the lpAddress and dwAddressSize data members of the DPLCONNECTION structure with SetGroupConnectionSettings. In the DPSESSIONDESC2 structure within the DPLCONNECTION structure, you do not have to fill in the guidInstance member.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dplay.h.
Import Library: Use dplayx.lib.
DPLCONNECTION, IDirectPlayLobby3::RunApplication, IDirectPlay4::GetGroupConnectionSettings