Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


DirectPlay 7 addresses

This topic is 6224 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Does anybody know the exact format of DirectPlay addresses in DirectX 7, so I can override the service providers? I''ve tried what making addresses from what it says in the documentation, but it doesn''t work, and the documentation seems to be incomplete. The addresses returned by EnumConnections seem as though they shouldn''t work, but they do. Any ideas?

Share this post

Link to post
Share on other sites
Are you trying to make some up or just eliminate the ones you don''t want?

Are you using dpconnect.cpp?

if eliminating and using dpconnect:

in the function DPConnect_EnumConnectionsCallback

// Found a good connection, so put it in the listbox
// if((LPARAM)pName->lpszShortNameA==-2044487340)
iIndex = SendMessage( hWndListBox, LB_ADDSTRING, 0, (LPARAM)pName->lpszShortNameA );

(LPARAM)pName->lpszShortNameA returns a number
pName->lpszShortNameA returns a string.

Log them into a text file to figure out what numbers represent which function. Then add the if statement and place the values you want in the list box in place of the one that''s there to limit what is shown.

I''m not sure how static they are though. They may differ from computer to computer.

I just let it list everything except for the lobby. I may care enough later to mess with it so it automatically does TCP/IP.


Share this post

Link to post
Share on other sites
Thanks for your reply. I''m actually trying to make some addresses up. I see what you mean - that I could enumerate the connections and change the TCP/IP connection data that is returned to hide the dialog, but surely you don''t need to for TCP/IP and IPX. When examining the connections that are enumerated, the total size chunk has a value of 80, which makes no sense (not divisible by size of each chunk), and my own attempts to make addresses have failed.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!