Link to home
Start Free TrialLog in
Avatar of Xircon
Xircon

asked on

how to check if the modem on a comm port is opened or not used?

can anyone share a code that checks for modem activity?
say i have a modem on com3, the program would check
if com3 port is open, like when using the internet or when
sending fax.

thanks...
ASKER CERTIFIED SOLUTION
Avatar of _corey_
_corey_

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
Avatar of Xircon
Xircon

ASKER

thanks corey.  thats what i had in mind.

id like to make a program that records the length of usage of the com ports, so it would need to check the ports at regular intervals. is there any less intrusive way of doing this?
SOLUTION
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
Both corey and me made good suggestions here, I suggest a split.
I'd go for jarnsater's approach.
The one suggested by corey could lead to other programs getting access denied to the port because your 'check' has it open.