The
RunApplication
method
allows
a
lobby
client
to
start
an
application,
passing
it
all
the
required
sessionconnection
information.
Once
the
application
process
has
been
created,
the
lobby
client
will
receive
a
system
message
indicating
the
applications
status.
If
the
application
is
hosting
the
session,
wait
for
a
DPLSYS_DPLAYCONNECTSUCCEEDED
message
before
starting
other
applications
that
wish
to
join
the
session.
Failure
to
create
or
join
a
session
generates
a
DPLSYS_DPLAYCONNECTFAILED
message
and
a
terminating
application
will
generate
a
DPLSYS_APPTERMINATED
message.
Once
the
application
has
read
the
connection
settings,
it
sends
a
DPLSYS_CONNECTIONSETTINGSREAD
message.
Do
not
release
the
lobby
interface
until
this
message
is
retrieved
by
either
the
synchronization
event
or
a
call
to
TDx_PlayLobby::ReceiveLobbyMessage()
or
TDx_PlayLobby::ReceiveLobbyMessageEx().