Listing available modems
I''m trying to set up multiplayer in my game wihtout using annoying window dialog boxes, and I have to get the modem connection working. So I need to be able to get the list of modems installed on the computer in order to do this.
I found that GetPlayerAddress(...) will give you a list of modems if you pass 0 for the player ID, but I still dont know how to use it. What variable should I pass in as the buffer for the modem name data? A string? an array of strings? etc.
And if I want a list of modems, do I have to figure out the buffersize first too or it''s different if I just want the modems?
Thanks in advance. A little code snippet would be helpful too.
- Rob
ByteMe95::~ByteMe95()
Cerebrum Software
ByteMe95::~ByteMe95()My S(h)ite
I don''t know how far you''re into programming it, but there is the RasApi that is for this stuff. The function RasEnumConnections will return an array of connections. Then you can go through each one checking ->szDeviceType and
->szDeviceName. I hope that answers your question.
->szDeviceName. I hope that answers your question.
Code to do just that from my project (DX6).
dp - Pointer to DIRECTPLAY4
dp_lobby - Pointer to DIRECTPLAYLOBBY3
Hope you'll figure it out...
Cheers
Meduzza
Edited by - Meduzza on September 12, 2000 7:28:55 PM
Edited by - Meduzza on September 12, 2000 7:30:29 PM
dp - Pointer to DIRECTPLAY4
dp_lobby - Pointer to DIRECTPLAYLOBBY3
Hope you'll figure it out...
|
Cheers

Meduzza
Edited by - Meduzza on September 12, 2000 7:28:55 PM
Edited by - Meduzza on September 12, 2000 7:30:29 PM
Meduzza
thanx a lot for the code
it looks good, I''m gonna have to try it (or some version of it)
I never thought to create a temp DP object for the first initializeconnection call, that kinda threw me off
ByteMe95::~ByteMe95()
Cerebrum Software
thanx a lot for the code
it looks good, I''m gonna have to try it (or some version of it)
I never thought to create a temp DP object for the first initializeconnection call, that kinda threw me off
ByteMe95::~ByteMe95()
Cerebrum Software
ByteMe95::~ByteMe95()My S(h)ite
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement