Link to home
Start Free TrialLog in
Avatar of scotdance
scotdanceFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Reading Comm Ports

I'm writing a C program and need to attach the code to determine what the address of comm ports on a computer are.  Need the code to incorporate within my own code. Apprecite any help.
Cheers
Avatar of nietod
nietod

What OS?  If this is windows--win32--then you can't access the comm ports directly.  You need to access them through the windows API functions (or write a device driver).
Look at that:

http://www.r2m.com/win-developer-FAQ/serial/6.html

I think it's what you need.
How do you know its windows?
Avatar of scotdance

ASKER

The program is to run in DOS
ASKER CERTIFIED SOLUTION
Avatar of sumant032199
sumant032199
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you want detail info in windows you can run
"C:\Program Files\Common Files\Microsoft Shared\MSinfo\MSINFO32.EXE"
Sumant

Can this determine what ports are not getting used??