DirectPlay Animated Header -- DPMSG_STARTSESSION DirectPlay Animated Header -- DPMSG_STARTSESSION* Microsoft DirectPlay SDK
*Index  *Topic Contents
*Previous Topic: DPMSG_SETSESSIONDESC
*Next Topic: Standard Lobby Messages


DPMSG_STARTSESSION


Contains information for the DPSYS_STARTSESSION system message. The lobby server sends this message to each player in a group when it is time for that player to join an application session.

typedef struct {
   DWORD            dwType;
   LPDPLCONNECTION  lpConn;
} DPMSG_STARTSESSION, FAR *LPDPMSG_STARTSESSION;

Members
dwType
Identifies the message. This member is always DPSYS_STARTSESSION.
lpConn
Pointer to a DPLCONNECTION structure that contains all the information needed to launch an application into a session. This structure can be passed into IDirectPlayLobby2::RunApplication (if an external application is to be launched) or passed into IDirectPlayLobby2::SetConnectionSettings and then followed by a call to IDirectPlayLobby2::Connect (to connect the current application to the session).
Remarks

Upon receipt of this message by a stand-alone lobby client, the client must launch the application by calling the IDirectPlayLobby2::RunApplication method with the DPLCONNECTION structure.

Upon receipt of this message by an application with an internal lobby, the application must set the connection settings by calling IDirectPlayLobby2::SetConnectionSettings and then connect to the session using the IDirectPlayLobby2::Connect method.

See Also

IDirectPlay3::StartSession, IDirectPlayLobby2::RunApplication, IDirectPlayLobby2::SetConnectionSettings, IDirectPlayLobby2::Connect

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page