Advertisement

IDirectPlay8Peer::EnumPlayersAndGroups Method

Started by October 01, 2003 07:37 AM
2 comments, last by FX_Cloud 21 years, 4 months ago
in my application i want to see how much players are in the session (i''m using directplay) and i tried the EnumPlayersAndGroups Method but something out of the human knowledge doesn''t work...the method returns always a null valor. can anyone explain me how to use properly this method or give me an alternative? thnx
use GetApplicationDesc() instead.
Advertisement
You have to call the function twice: once to get an adjusted length (you got error code DPNERR_BUFFERTOOSMALL), and the next one to retrieve the list itself using the adjusted buffer.

-cb
thnx for your advices...i resolved my problem using DPN_MSGID_CREATE_PLAYER in my MessageHandler HRESULT and updating a counter when a user enters or leaves (in this case the message is _DESTROY_)...is a rudimental method but works...and if i would like to know the ip of the connected player?

This topic is closed to new replies.

Advertisement