Microsoft DirectX 8.1 (C++) |
Connects a lobby-enabled application to the session specified in the DPL_CONNECT_INFO structure. If the application is not running, this method can be used to launch the application.
When the connection is successfully established, the lobbied application generates a DPL_MSGID_CONNECT system message to the message handler.
HRESULT ConnectApplication( DPL_CONNECT_INFO *const pdplConnectionInfo, const PVOID pvUserApplicationContext, DPNHANDLE *const phApplication, const DWORD dwTimeOut, const DWORD dwFlags );
Returns S_OK if successful, or one of the following error values.
DPNERR_CANTLAUNCHAPPLICATION |
DPNERR_INVALIDFLAGS |
DPNERR_INVALIDPARAM |
DPNERR_TIMEDOUT |
DPNERR_NOCONNECTION |
DPNERR_DOESNOTEXIST |
When this method returns DPNERR_NOCONNECTION, the reason is usually that the application described in the pdplConnectionInfo parameter has not called IDirectPlay8LobbiedApplication::SetAppAvailable.
Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
Windows 98/Me: Available as a redistributable for Windows 98 and later.
Header: Declared in Dplobby8.h.