Solved

Status modem

Posted on 2002-03-25
10
211 Views
Last Modified: 2008-03-17
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.
0
Comment
Question by:jalgazi
10 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 6894993
What about 'RasEnumDevices()'?
0
 
LVL 86

Expert Comment

by:jkr
ID: 6894999
0
 

Author Comment

by:jalgazi
ID: 6895030
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)
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7036238
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.
0
 
LVL 11

Expert Comment

by:griessh
ID: 7051823
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
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 7052052
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0
 
LVL 86

Expert Comment

by:jkr
ID: 7052064
Wow! 7 days can go by quite fast :o)
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7052099
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 **
0
 
LVL 86

Expert Comment

by:jkr
ID: 7052106
Mindphaser,

no offense meant at all :o)
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7052120
jkr

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now