Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8LobbyClient.SetConnectionSettings

Sets the connection settings to be associated with the specified connection.

SetConnectionSettings(hTarget As Long, _
    lFlags As Long, _
    ConnectionSettings As DPL_CONNECTION_SETTINGS), _
    HostAddress As DirectPlay8Address, _
    Device As DirectPlay8Address)

Parts

hTarget
Long value that is set to the connection handle.
lFlags
Reserved. Set to 0.
ConnectionSettings
DPL_CONNECTION_SETTINGS type that contains the connections.
HostAddress
DirectPlay8Address object containing the host address.
Device
DirectPlay8Address object containing the device address.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_INVALIDPARAM
DPNERR_INVALIDOBJECT
DPNERR_INVALIDFLAGS