Microsoft SDK for Java

getPlayerData

This method of the DirectPlay2 Class retrieves player data for the specified player ID.

Syntax

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

Parameters

playerId ID of the player for which data is being requested.
data Application-specific player data. Set this parameter to null to request only the size of data. The dataSize parameter will be set to the size required to hold the data.
dataSize The size of the buffer before calling this method. After the method returns, this parameter will be set to the size, in bytes, of the group data. If the buffer was too small (DPERR_BUFFERTOOSMALL), this parameter will be set to the buffer size required.
flags If this parameter is set to 0, the remote data will be retrieved.

DPGET_REMOTE

Retrieves the current data from the remote shared data space.

DPGET_LOCAL

Retrieves the local data set by this application.


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