HRESULT GetMessageCount(DPID pidID, LPDWORD lpdwCount);
Queries the name server for the number of messages queued for a specific local player.
·Returns DP_OK if successful, or one of the following error values otherwise:
DPERR_INVALIDOBJECT DPERR_INVALIDPARAMS
pidID
Player ID for which the message count is requested. The player must be local.
lpdwCount
Address for a doubleword that will be set to the message count.