IDirectPlay3::GetMessageCount

Queries for the number of messages in the receive queue for a specific local player.

HRESULT GetMessageCount(
DPID idPlayer,
LPDWORD lpdwCount
);

Parameters

idPlayer

ID of the player whose message count is requested. The player must be local.

lpdwCount

Pointer to a variable that will be set to the message count when this method returns.

Return Values

Returns DP_OK if successful, or one of the following error values otherwise:

DPERR_INVALIDOBJECT

DPERR_INVALIDPARAMS

DPERR_INVALIDPLAYER

See Also

IDirectPlay3::Receive