Microsoft DirectX 8.1 (Visual Basic)

Handling Lobby Launching

The first thing your lobbyable application should do when it is launched is to create and initialize a Microsoft® DirectPlay® lobbied application object. To do this, perform the following tasks.

If the application was lobby-launched, DirectPlay will call your DirectPlay8LobbyEvent.Connect method. The dlNotify parameter will contain a DPL_MESSAGE_CONNECT type with connection information. such as address objects for the members of the session.

If your application was not lobby launched, you can indicate that your application is available to lobby clients for connection by calling DirectPlay8LobbiedApplication.SetAppAvailable. This method is typically called when the application has been launched by the user. However, it can also be used if the user has closed one session but the application is still running and available for another session. In either case, DirectPlay will call your message handler's DirectPlay8LobbyEvent.Connect method when the lobby client connects your application to a session.