The IEnumPlayersCallback2 Interface of the com.ms.directX package is used with the DirectPlay2.enumGroupPlayers, DirectPlay2.enumGroups, and DirectPlay2.enumPlayers methods to set the callback function to be called for each group or player.
public interface IEnumPlayersCallback2 extends IUnknown { // Methods public void callbackEnumPlayers(int playerId, int playerType, String playerShortName, String playerLongName, int flags, IUnknown context); }
IUnknown | +--IEnumPlayersCallback2
You can use the DirectPlay2.stopEnumPlayers method to stop a player enumeration.