🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #685

Re: Communications Ports

#685
From: Paul Buddington
Date: Sat, 24 Nov 1990 03:30
25 lines
1841 bytes
In article <1990Nov15.173419.5619@isis.cs.du.edu> dweinste@isis.cs.du.edu (David Hills Weinstein) writes:
>Does anyone have (or know of) publically available code snippets using
>the Windows 3.0 calls for dealing with the COM ports?  If anyone could
>either post or mail such snippets (or give directions to a publically
>available FTP site which had such source code), I would greatly appreciate
>it.
>
>Thanks,
>   --Dave Weinstein

On a related note, does anyone know if there's a way to give a DOS program 
exclusive rights to a COM port (under Windows)?  Right now, the best that I
can do is to wait for the stupid error message (port conflict) to appear
and then restore the DOS window.  A timeout is not good enough because I
frequently leave the connection open in the background.  I need to insure that
nobody can accidently cut me off be starting another session of my 
communications program which would re-initialize the modem.  I would like to
be able to give the program exclusive rights to the modem and only have 
Windows notify me if another program tries to use it.  The main problem lies
in the fact that Windows itself initially seems to have control of the
COM ports.

Thanks in advance.
Paul Buddington
(Buddington_Paul@CS.Yale.Edu)
Technical Details
Message-ID: <27376@cs.yale.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!yale!quasi-eli!cs.yale.edu!buddington-paul
References: <1990Nov15.173419.5619@isis.cs.du.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!yale!quasi-eli!cs.yale.edu!buddington-paul
From: buddington-paul@cs.yale.edu (Paul Buddington)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Communications Ports
Message-ID: <27376@cs.yale.edu>
Date: 24 Nov 90 03:30:41 GMT
References: <1990Nov15.173419.5619@isis.cs.du.edu>
Sender: news@cs.yale.edu
Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
Lines: 25
Nntp-Posting-Host: dolphin.zoo.cs.yale.edu
Originator: xbudding@dolphin.CS.Yale.Edu