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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi : could not find program, '...exe' 2 217
DBGrid or StringGrid ? 6 120
Delphi, TImage, Png 2 32
Firemonkey Queue list 1 32
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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