Platform SDK: DirectX |
The IDirectPlayLobby3::GetConnectionSettings method retrieves the DPLCONNECTION structure that contains all the information needed to start and connect an application. The data returned is the same data that was passed to the IDirectPlayLobby3::RunApplication method by the lobby client, or set by calling the IDirectPlayLobby3::SetConnectionSettings method.
HRESULT GetConnectionSettings( DWORD dwAppID, LPVOID lpData, LPDWORD lpdwDataSize );
Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_BUFFERTOOSMALL |
DPERR_GENERIC |
DPERR_INVALIDINTERFACE |
DPERR_INVALIDOBJECT |
DPERR_INVALIDPARAMS |
DPERR_NOTLOBBIED |
DPERR_OUTOFMEMORY |
The lpData member should be cast to the DPLCONNECTION structure when the method returns to read the data from it.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dplobby.h.
Import Library: Use dplayx.lib.
DPLCONNECTION, IDirectPlayLobby3::RunApplication, IDirectPlayLobby3::SetConnectionSettings, IDirectPlayLobby3::WaitForConnectionSettings