| DirectX SDK | 
The IDirectPlay4::GetMessageCount method queries for the number of messages in the receive queue for a specific local player.
HRESULT GetMessageCount( DPID idPlayer, LPDWORD lpdwCount );
Returns DP_OK if successful, or one of the following error values otherwise:
| DPERR_INVALIDOBJECT | 
| DPERR_INVALIDPARAMS | 
| DPERR_INVALIDPLAYER | 
  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.