HRESULT GetMessageCount(DPID idPlayer, LPDWORD lpdwCount);
Queries for the number of messages in the receive queue for a specific local player.
·Returns DP_OK if successful, or one of the following error values otherwise:
idPlayer
ID of the player whose message count is requested. The player must be local.
lpdwCount
Address of a variable that will be set to the message count when this method returns.