Platform SDK: DirectX

DirectPlay4.GetMessageCount

The DirectPlay4.GetMessageCount method retrieves the number of messages in the receive queue for a specified local player.

object.GetMessageCount(playerId As Long) As Long

Parameters

object
Object expression that resolves to a DirectPlay4 object.
playerId
ID of the player whose message count is requested. The player must be local.

Return Values

Returns the message count.

Error Codes

If the method fails, an error is raised and Err.Number will be set.

See Also

DirectPlay4.Receive