Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Play_Library v2.00 Component Reference
|
|
[ TDx_Play::EnumConnections() ]
[ next: EnumGroupPlayers() ]
[ prev: DestroyPlayer() ]
public:
virtual bool __fastcall EnumConnections( const GUID* pApplication, void* pContext, dword pFlags );
TDX_PLAY::ENUMCONNECTIONS()
[ component method ]
- Description
The
EnumConnections
method
will
enumerate
available
registered
service
and
lobby
providers.
The
order
of
enumeration
is
indeterminate
and
the
TDx_Play::OnEnumConnections()
event
will
be
called
for
each
connection
enumerated.
Some
enumerated
providers
may
not
be
available
for
use,
check
the
TDx_Play::InitializeConnection()
return
values
to
be
sure,
an
error
will
be
returned
if
the
connection
is
unavailable.
For
example,
a
modem
service
provider
would
still
be
enumerated
even
if
the
modem
is
not
attached
to
the
system.
Error
values
that
can
be
generated
are:
DPERR_CONNECTIONLOST
DPERR_INVALIDFLAGS
DPERR_INVALIDPARAMS
- Parameters
Application
The Application parameter references the application identifier.
Setting NULL results in all connections being enumerated, otherwise only connections usable by the specified application will be enumerated.
Context
The Context parameter references application defined data to be passed to the callback function for each enumeration.
Flags
The Flags parameter defines flags indicating the connection types that are to be enumerated.
The described effect applies when the flag is set.
The default setting of zero gives the same results as DPCONNECTION_DIRECTPLAY.
DPCONNECTION_DIRECTPLAY
DirectPlay service providers for communicating within application sessions are to be enumerated.
DPCONNECTION_DIRECTPLAYLOBBY
DirectPlayLobby providers for communicating with lobby servers are to be enumerated.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|