Microsoft DirectX 8.1 (Visual Basic)

Launching a Lobbied Application

When 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 DirectPlay8LobbyClient.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 DirectPlay8LobbyClient.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, DirectPlay will call your message handlers DirectPlay8LobbyEvent.Connect method.

Note  Your message handler's DirectPlay8LobbyEvent.Connect method may be called before the DirectPlay8LobbyClient.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.