Microsoft DirectX 8.0 (C++)

Launching a Lobbied Application

Once the user has selected an application, and your lobby client has verified that it has been registered on the user's system, you can launch the application. To do so, call IDirectPlay8LobbyClient::ConnectApplication. The first parameter is a DPL_CONNECT_INFO structure that contains a variety of information needed to launch the application including the following:

The IDirectPlay8LobbyClient::ConnectApplication method returns an application handle that is used to identify the application in all further communication. Once the application has launched and the connection successfully established, your message handler receives a DPL_MESSAGE_CONNECT message.

Note  Your message handler may receive the DPL_MESSAGE_CONNECT before the IDirectPlay8LobbyClient::ConnectApplication method has confirmed the connection by returning a success code. Your message handler should be prepared to handle the message even if the method has not yet returned.