| DirectX SDK | 
The IDirectPlay4::GetPlayerData method retrieves an application-specific data block that was associated with a player ID by using IDirectPlay4::SetPlayerData.
HRESULT GetPlayerData( DPID idPlayer, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags );
Returns DP_OK if successful, or one of the following error values otherwise:
| DPERR_BUFFERTOOSMALL | 
| DPERR_INVALIDFLAGS | 
| DPERR_INVALIDOBJECT | 
| DPERR_INVALIDPLAYER | 
DirectPlay can maintain two types of player data: local and remote. The application must specify which type of data to retrieve. Local data was set by this DirectPlay object by using the DPSET_LOCAL flag. Remote data might have been set by any application in the session by using the DPSET_REMOTE flag.
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplay.h.
  Import Library: Use dplayx.lib.