DirectX SDK |
EnumConnectionsCallback is an application-defined callback function for the IDirectPlay4::EnumConnections method.
BOOL FAR PASCAL EnumConnectionsCallback( LPCGUID lpguidSP, LPVOID lpConnection, DWORD dwConnectionSize, LPCDPNAME lpName, DWORD dwFlags, LPVOID lpContext );
If IDirectPlay4::EnumConnections was called on an ANSI interface, reference the strings as ANSI. If EnumConnections was called on a Unicode interface, reference the strings as Unicode.
Returns TRUE to continue the enumeration or FALSE to stop it.
The application must implement this function in order to use the IDirectPlay4::EnumConnections method. It is called once for each connection that is enumerated.
The application should allocate memory and copy each of the connections for presentation to the user and for use in the IDirectPlay4::InitializeConnection method.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dplay.h.
IDirectPlay4::EnumConnections, IDirectPlay4::InitializeConnection