[comp.sys.ibm.pc] How can you monitor DTR from quick basic?

arup@grasp.cis.upenn.edu (Arup Mukherjee) (10/21/87)

This posting is for a friend who does not have net access. He is writing a 
BBS program in quick basic and needs to monitor DTR on the com port in order
to determine when a caller hangs up on his network. He is accustomed to 
getting "NO CARRIER" messages from the modem to tell him when this happens,
but of course this does not work now. There is a program around called 
watchdog which monitors DTR and reboots the machine if it is lost, but this 
won't work either because the machine will be running 2 nodes under DESQview.

Is anyone out there familiar enough with qbasic to write down a few lines
of code that would return something to tell the program that DTR has been
lost when applicable?

					Many thanks.....

							Arup Mukherjee
						[arup@grasp.cis.upenn.edu]