|Microsoft DirectX 9.0|
Retrieves the set of connection settings for the specified connection. These settings can be set through a call to the IDirectPlay8LobbyClient::ConnectApplication, IDirectPlay8LobbyClient::SetConnectionSettings, or IDirectPlay8LobbiedApplication::SetConnectionSettings method.
When you get connection settings, a reference will be added for each address object that is returned to the user. Therefore, users must be sure to call Release on each address object when they are done with the structure.
const DPNHANDLE hLobbyClient, DPL_CONNECTION_SETTINGS *const pdplSessionInfo, DWORD *pdwInfoSize, const DWORD dwFlags );
- [in] Handle to the connection for which to retrieve the settings.
- [out] Pointer to a DPL_CONNECTION_SETTINGS structure to receive the connection settings for the specified connection.
- [in, out] Pointer to a DWORD containing the size, in bytes, of the buffer specified in the pdplSessionInfo structure. If the buffer is not large enough to hold the connection settings, DPNERR_BUFFERTOOSMALL is returned and this value will be set to the required buffer size. On success, this value will contain the number of bytes written to the specified buffer.
- [in] Reserved, must be 0.
Returns S_OK if successful, or the following error value.
DPNERR_INVALIDPARAM One or more of the parameters passed to the method are invalid. DPNERR_BUFFERTOOSMALL The supplied buffer is not large enough to contain the requested data. DPNERR_INVALIDOBJECT The Microsoft?DirectPlay?object pointer is invalid. DPNERR_INVALIDFLAGS The flags passed to this method are invalid.