Solved

Working with a modem

Posted on 1998-11-01
2
242 Views
Last Modified: 2008-02-01
Hello,
 How can i know on witch COM port is installed the modem with VB4?

Best regard's
0
Comment
Question by:VB041898
2 Comments
 
LVL 4

Accepted Solution

by:
CraigLazar earned 50 total points
Comment Utility
Hi
try the following dll's one of them should be able to return a value telling you which com port is being used for the modem
Declare Function GetCommModemStatus Lib "kernel32" Alias "GetCommModemStatus" (ByVal hFile As Long, lpModemStat As Long) As Long
Declare Function GetCommProperties Lib "kernel32" Alias "GetCommProperties" (ByVal hFile As Long, lpCommProp As COMMPROP) As Long
Declare Function GetCommState Lib "kernel32" Alias "GetCommState" (ByVal nCid As Long, lpDCB As DCB) As Long



 hope it helps
cheers craig
0
 

Author Comment

by:VB041898
Comment Utility
Thank you for your answer, and excuse me for my late reply.
I beleive you are right, but i don't know what value i have to provide to the function.
I don't know what is "hFile", "lpModemStat", " lpCommProp", "nCid ", ect... I don't know what they mean, and how i can know their value.
Could you explicite me this?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 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

8 Experts available now in Live!

Get 1:1 Help Now