Link to home
Start Free TrialLog in
Avatar of jalgazi
jalgazi

asked on

Status modem

I am programming in windows 2000 OS.  I have a bunch of modems on my computer and I want to be able to check to see which modems (or how many modems) are available to dial out on (RASDIAL()).

    I want to be able to tell two different states of the modem.  
State1 : (not ready to dail)
if a modem is turned off (I have external modems), is dialing, or is connected --

State 2: (ready to Dial) if a modem is available to Dial out.

I have tried RasEnumConnections and RasGetConnectStatus, but these only tell me how many modems are configured for my system and how many are conected. I need to be able to tell if one of the modems is available to dail a number.

Any help would be great! Thank you.
Avatar of jkr
jkr
Flag of Germany image

What about 'RasEnumDevices()'?
Avatar of jalgazi
jalgazi

ASKER

I also tried RasEnumDevices.... All it gives me is the name and buffer size...  I use it to determine how many modem devices I have.  

I am able to figure out how many modems are currently connected. (device amount - currently connected) should give me the correct number, but if a device is pending or is turned off I won't be able to tell and may try to dail. For that case is there a way to tell if the modem has a dail tone or is in ready state (with out actually trying to dail)
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
Dear jalgazi

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to

     "refund the points and PAQ at zero points"

since nobody had a satisfying answer for you.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
ASKER CERTIFIED SOLUTION
Avatar of Mindphaser
Mindphaser

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wow! 7 days can go by quite fast :o)
jkr

I really didn't look at the timestamp of griessh's comment. My cry for help was posted 05/26/2002 and that's certainly more than 7 days away. If you go through the other C++ questions I posted you will notice that I accepted any help.

** Mindphaser - Community Support Moderator **
Mindphaser,

no offense meant at all :o)
jkr

I am taking this business very serious ... or maybe not ... what do I know :-)