DPLCONNECTION

typedef struct {

DWORD dwSize;

DWORD dwFlags;

LPDPSESSIONDESC2 lpSessionDesc;

LPDPNAME lpPlayerName;

GUID guidSP;

LPVOID lpAddress;

DWORD dwAddressSize;

} DPLCONNECTION, *LPDPLCONNECTION;

Contains the information needed to connect an application to a session.

dwSize

Indicates the size, in bytes, of this structure. Your application must set this member before it uses this structure; otherwise, an error will result.

dwFlags

Indicates how the connection should be made.

DPLCONNECTION_CREATESESSION

Create a new session as described in the session description.

DPLCONNECTION_JOINSESSION

Join the existing session as described in the session description.

lpSessionDesc

Address of a DPSESSIONDESC2 structure describing the session to be created or the session to join.

lpPlayerName

Address of a DPNAME structure with the name that the player should be created with. This will be the name of the person registered in the lobby. The application can ignore this name.

guidSP

Globally unique identifier (GUID) of the service provider to use to connect to the session.

lpAddress

Address of a DirectPlay Address that contains the information that the service provider needs to connect to a session.

dwAddressSize

Size, in bytes, of the address data.