TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Daniel Lynes
from: Jeffrey Habets
date: 1997-01-21 13:38:00
subject: Monitoring data send/received on com-port

Hello Daniel!

Saturday, January 18 1997, Daniel Lynes wrote to Jeffrey Habets:

 JH>> I would like to monitor all incoming and/or outgoing data on the
 JH>> serial port. Now, that wouldn't be to difficult if my program was the

 DL> You need to call the 16-bit DosMon...() API.  There aren't any functions
 DL> in the 32-bit API to accomplish this task.

No can do.. Those functions are not supported by the COMx character devices.

You can see for yourself be issueing a DosDevIOCtl() categorie 0Bh function
60h on the COMx device.

 JH>> only one using the com-port, but the case is that my program is the
 JH>> 'third-party' and an other program is taking care of communication.

 DL> Yes, it works exactly as you want it to.  N.B.  Part of it must be at the
 DL> driver level.  However, you may have a DLL or DLL/EXE callback suite of
 DL> routines.

I appreciate your help, but have you actually done this using the DosMon* functions?

Greetz from Maastricht/The Netherlands,
Jeffrey  >

--- GoldED/2 2.51.A0901+ /\ FMail/2 1.02+
* Origin: Seen in the yellow pages: 4 MB SIP WOM (2:284/312.3)
SEEN-BY: 50/99 54/99 270/101 620/243 625/110 160 711/401 413 430 808 934
SEEN-BY: 712/311 407 505 506 517 623 624 704 713/317 800/1
@PATH: 284/312 3 5 282/123 280/801 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.