Microsoft DirectX 8.1 (Visual Basic) |
Connects a lobby-enabled application to the session specified in the DPL_CONNECT_INFO type. If the application is not running, this method can be used to launch the application.
When the connection is successfully established, Microsoft® DirectPlay® calls the message handler's DirectPlay8LobbyEvent.Connect method.
ConnectApplication( _ ConnectionInfo As DPL_CONNECT_INFO, lTimeOut As Long, _ lFlags As CONST_DPLCONNECT) As Long
Returns a Long value that is set to the application connection handle . This handle is used for further communication with the application. Additionally, this handle is used in the Application parameter in the DirectPlay8LobbyClient.ReleaseApplication method.
If the method fails, Err.Number can be set to one of the following values.
DPNERR_CANTLAUNCHAPPLICATION |
DPNERR_INVALIDFLAGS |
DPNERR_INVALIDPARAM |
DPNERR_TIMEDOUT |