Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Interface IEnumPlayersCallback2

public interface IEnumPlayersCallback2 extends IUnknown
{
  // Methods
  public void callbackEnumPlayers(int playerId, int playerType,
        String playerShortName, String playerLongName, int flags,
        IUnknown context);
}

Use with the DirectPlay2.enumGroupPlayers, DirectPlay2.enumGroups, and DirectPlay2.enumPlayers methods to set the callback function to be called for each group or player.

You can use the DirectPlay2.stopEnumPlayers method to stop a player enumeration.

IUnknown
  |
  +--IEnumPlayersCallback2

Methods

callbackEnumPlayers

public void callbackEnumPlayers(int playerId, int playerType,
        String playerShortName, String playerLongName, int flags,
        IUnknown context);

Application-defined callback procedure.

Return Value:

No return value.

ParameterDescription
playerId ID of the player or group being enumerated.
playerType The type of player, either DPPLAYERTYPE_GROUP or DPPLAYERTYPE_PLAYER.
playerShortName The short name of the player.
playerLongName The long name of the player.
flags Specifies the flags that were passed to the enumGroups enumGroupPlayers, or enumPlayers, method.
context The caller-defined context.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.