Subj : Serial port query To : Darin McBride From : Vitus Jensen Date : Sun Aug 06 2000 05:55 pm Moin Darin! 04.08.2000, Darin McBride wrote a message to all: DM> I've been asked how to do something I'm at a loss as to where to start DM> - if it's possible at all. To quote the person asking me: DM> Is there a way 1. to check the state of a port, 2. determine the DM> application using it? DM> By #1, I believe he means "determine if a comm port was in use". DM> Any ideas whatsoever would be appreciated. I believe #1 can be done DM> by an attempt to open the port as a file in "DENY_ALL" mode - if it DM> fails, someone is using it. I don't believe #2 is possible. If I DM> could be corrected, that would be great. :-) Get OS2UNDOC from hobbes and have a look at the DosQuerySysState API. It will return infos about all open files of a single or all processes. There are problems when using it at certain fixpak levels (older Warp 3 fixpaks). And Scott Garfinkle posted in C.O.O.P.Misc that it is now possible getting infos about all open semaphore handles as well. Starting with FP 13 AFAIR (got the msg stored somewhere). Bye, Vitus --- * Origin: PATH=C:\DOS;C:\DOS\RUN;C:\WIN\CRASH\DOS;C:\ME\DEL\WIN (2:2474/424.1) .