Detecting modem installation

Posted on 1998-09-07
Last Modified: 2010-04-06

how can I detect, if the modem is installed?

Question by:Stern
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Edo082297 earned 50 total points
ID: 1338877
Hi Stern
   You want to intercepyt an event issued by Windows, WM_DEVICECHANGE, that will notify your program of a change in the hardware configuration. Look up Application.HookMainWindow, and use HookWndProc to receive this message. You will specifically be looking for the DBT_DEVICEARRIVAL message. If you would like me to code this for you, let me know and I will, but you may have enough information to go on.


Expert Comment

ID: 1338878
Hi Stern
   I don't think I answered your question properly. To detect if a modem is installed on a machine, open each com port using CreateFile and send "AT"<CR>, and listen for an "OK" response. However, any of these ports with CD high should not be disturbed, as it may be in use (probably by the mouse).


Author Comment

ID: 1338879
Sorry, it's not clear for me. Could you, maybe, give some examples?

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

705 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