How to monitor modem connect to the internet ?

Posted on 2004-10-31
Last Modified: 2013-11-20
I want to monitor the modem, if the user is trying to dial up to connect to the internet, I will be notified and I can do something, how to do it ?
Question by:Tom_lyd
    LVL 6

    Accepted Solution

    hi tom

    have a look at the article and code at the following link
    LVL 16

    Expert Comment


    u can use RasEnumConnection API


    Author Comment

    Thank you very much, if the user only connect the modem to the computer and powered on, but don't dail up, then how can I know a modem is connected to the computer other than dailing up ?
    LVL 16

    Expert Comment

    hi ...

    chk  the link...

    its a vb code. u can use the APIs in the example. It list modems connected to ur computer.
    If the number is zero , then no modems are connected to ur computer.

    hope this helps


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
    Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    884 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

    20 Experts available now in Live!

    Get 1:1 Help Now