Microsoft SDK for Java

enumGroupPlayers

This method of the DirectPlay2 Class enumerates all the players of a particular group existing in the current session. Use the stopEnumGroupPlayers method to stop the enumeration.

Syntax

public void enumGroupPlayers(int groupId, _Guid sessionGuid, IEnumPlayersCallback2 callback, IUnknown context, int flags);

Parameters

groupId The Group ID, whose players are to be enumerated.
sessionGuid The GUID of the DirectPlay session of interest. This parameter must be set to null unless the DPENUMPLAYERS_SESSION flag is specified.
callback The callback interface that contains the callback function to be called for every player in the group.
context A caller-defined context that is passed to each enumeration callback.
flags The flags to pass to the callback function.

Remarks

By default, this method will enumerate group players by using the local player list for the current session. This method cannot be called from within an enumSessions enumeration.

See Also

createPlayer, destroyPlayer, addPlayerToGroup, deletePlayerFromGroup, stopEnumGroupPlayers

© 1999 Microsoft Corporation. All rights reserved. Terms of use.