Packages
 In this topic

*Methods

 

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

 


Interface IDirectPlay2

public interface IDirectPlay2 extends IUnknown
{
  // Methods
  public void addPlayerToGroup(int groupId, int playerId);
  public void close();
  public IDirectPlay2 create(_Guid guid);
  public int createGroup(String friendlyName, String formalName,
        byte[] data, int dataSize);
  public int createPlayer(String friendlyName, String formalName,
        int receiveEvent, byte[] data, int dataSize);
  public void deletePlayerFromGroup(int groupId, int playerId);
  public void destroyGroup(int groupId);
  public void destroyPlayer(int playerId);
  public void enumGroupPlayers(int groupId, _Guid sessionGuid,
        IEnumPlayersCallback2 callback, IUnknown context,
        int flags);
  public void enumGroups(_Guid sessionGuid,
        IEnumPlayersCallback2 callback, IUnknown context,
        int flags);
  public void enumPlayers(_Guid sessionGuid,
        IEnumPlayersCallback2 callback, IUnknown context,
        int flags);
  public void enumServiceProviders(
        IEnumServiceProvidersCallback callback, IUnknown context);
  public void enumSessions(DPSessionDesc sessionDesc,
        _Guid sessionGuid, _Guid applicationGuid,
        String sessionName, String password, int timeOut,
        IEnumSessionsCallback2 callback, IUnknown context,
        int flags);
  public void getCaps(DPCaps caps, int flags);
  public void getGroupData(int groupId, byte[] data,
        int[] dataSize, int flags);
  public String getGroupFormalName(int groupId);
  public String getGroupFriendlyName(int groupId);
  public int getMessageCount(int playerId);
  public void getPlayerAddress(int playerId, byte[] addressData,
        int[] addressSize);
  public int getPlayerAddressSize(int playerId);
  public void getPlayerCaps(int playerId, DPCaps caps, int flags);
  public void getPlayerData(int playerId, byte[] data,
        int[] dataSize, int flags);
  public String getPlayerFormalName(int playerId);
  public String getPlayerFriendlyName(int playerId);
  public void getSessionDesc(DPSessionDesc sessionDesc,
        _Guid sessionGuid, _Guid applicationGuid,
        String[] sessionName, String[] password);
  public void initialize(_Guid guid);
  public void open(DPSessionDesc sessionDesc, _Guid sessionGuid,
        _Guid applicationGuid, String sessionName,
        String password, int flags);
  public void receive(int[] fromPlayerId, int[] toPlayerId,
        int flags, byte[] data, int[] dataSize);
  public int receiveSize(int flags);
  public void send(int fromPlayerId, int toPlayerId, int flags,
        byte[] data, int dataSize);
  public void setGroupData(int groupId, byte[] data, int dataSize,
        int flags);
  public void setGroupName(int groupId, String friendlyName, String
        formalName, int flags);
  public void setPlayerData(int playerId, byte[] data,
        int dataSize, int flags);
  public void setPlayerName(int playerId, String friendlyName,
        String formalName, int flags);
  public void setSessionDesc(DPSessionDesc sessionDesc,
        _Guid sessionGuid, _Guid applicationGuid,
        String sessionName, String password, int flags);
}

For a description of methods and parameters, see DirectPlay2.

IUnknown
  |
  +--IDirectPlay2

Methods

addPlayerToGroup

public void addPlayerToGroup(int groupId, int playerId);

close

public void close();

create

public IDirectPlay2 create(_Guid guid);

createGroup

public int createGroup(String friendlyName, String formalName, byte[] data,
        int dataSize);

createPlayer

public int createPlayer(String friendlyName, String formalName,
        int receiveEvent, byte[] data, int dataSize);

deletePlayerFromGroup

public void deletePlayerFromGroup(int groupId, int playerId);

destroyGroup

public void destroyGroup(int groupId);

destroyPlayer

public void destroyPlayer(int playerId);

enumGroupPlayers

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

enumGroups

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

enumPlayers

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

enumServiceProviders

public void enumServiceProviders(IEnumServiceProvidersCallback callback,
        IUnknown context);

enumSessions

public void enumSessions(DPSessionDesc sessionDesc, _Guid sessionGuid,
        _Guid applicationGuid, String sessionName, String password,
        int timeOut, IEnumSessionsCallback2 callback, IUnknown context, int
        flags);

getCaps

public void getCaps(DPCaps caps, int flags);

getGroupData

public void getGroupData(int groupId, byte[] data, int[] dataSize,
        int flags);

getGroupFormalName

public String getGroupFormalName(int groupId);

getGroupFriendlyName

public String getGroupFriendlyName(int groupId);

getMessageCount

public int getMessageCount(int playerId);

getPlayerAddress

public void getPlayerAddress(int playerId, byte[] addressData,
        int[] addressSize);

getPlayerAddressSize

public int getPlayerAddressSize(int playerId);

getPlayerCaps

public void getPlayerCaps(int playerId, DPCaps caps, int flags);

getPlayerData

public void getPlayerData(int playerId, byte[] data, int[] dataSize,
        int flags);

getPlayerFormalName

public String getPlayerFormalName(int playerId);

getPlayerFriendlyName

public String getPlayerFriendlyName(int playerId);

getSessionDesc

public void getSessionDesc(DPSessionDesc sessionDesc, _Guid sessionGuid,
        _Guid applicationGuid, String[] sessionName, String[] password);

initialize

public void initialize(_Guid guid);

open

public void open(DPSessionDesc sessionDesc, _Guid sessionGuid,
        _Guid applicationGuid, String sessionName, String password,
        int flags);

receive

public void receive(int[] fromPlayerId, int[] toPlayerId, int flags, byte[]
        data, int[] dataSize);

receiveSize

public int receiveSize(int flags);

send

public void send(int fromPlayerId, int toPlayerId, int flags, byte[] data,
        int dataSize);

setGroupData

public void setGroupData(int groupId, byte[] data, int dataSize, int flags);

setGroupName

public void setGroupName(int groupId, String friendlyName,
        String formalName, int flags);

setPlayerData

public void setPlayerData(int playerId, byte[] data, int dataSize,
        int flags);

setPlayerName

public void setPlayerName(int playerId, String friendlyName,
        String formalName, int flags);

setSessionDesc

public void setSessionDesc(DPSessionDesc sessionDesc, _Guid sessionGuid,
        _Guid applicationGuid, String sessionName, String password,
        int flags);

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