🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Programming COM/LPT ports under Windows

#3530
From: Henrik Haftmann
Date: Sat, 20 Apr 1996 00:00
14 lines
2041 bytes
In article <4l5rl4$q9@kadri.ut.ee>, xvosil@rubiin.physic.ut.ee says...
>        "Is it possible to operate on the API level
>        with COM and LPT ports under Windows?"
>In the other terms, I need to set and check zero/one voltage
>levels on a concrete port pin over a constant time interval.
You can access freely (almost) to the port addresses with inp()/outp() (except 
under Win32). But to prevent other windows apps for accessing the same port, 
you should "allocate" the port with OpenComm().
If you want to prevent access by DOS boxes, I think you have to write a VxD. 
Good luck.
-- 
Henrik Haftmann           | email: henrik.haftmann@e-technik.tu-chemnitz.de
Reichenhainer Str. 51/105 |   www: http://www.tu-chemnitz.de/~heha
D - 09126 Chemnitz        | hobby: teletext in WWW at ~heha/toaster/vtnet.htm
Technical Details
Message-ID: <4lacvl$p9n@narses.hrz.tu-chemnitz.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4l5rl4$q9@kadri.ut.ee>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dfb,765c5593a5f635ee
X-Google-Attributes: gid113dfb,public
X-Google-Thread: 102af1,765c5593a5f635ee
X-Google-Attributes: gid102af1,public
X-Google-Thread: f6ef4,765c5593a5f635ee
X-Google-Attributes: gidf6ef4,public
X-Google-Thread: 105df1,765c5593a5f635ee
X-Google-Attributes: gid105df1,public
X-Google-Thread: 11100c,765c5593a5f635ee
X-Google-Attributes: gid11100c,public
X-Google-Thread: f7033,765c5593a5f635ee
X-Google-Attributes: gidf7033,public
X-Google-Thread: f801d,765c5593a5f635ee
X-Google-Attributes: gidf801d,public
From: henrik.haftmann@e-technik.tu-chemnitz.de (Henrik Haftmann)
Subject: Re: Programming COM/LPT ports under Windows
Date: 1996/04/20
Message-ID: <4lacvl$p9n@narses.hrz.tu-chemnitz.de>
X-Deja-AN: 150480119
references: <4l5rl4$q9@kadri.ut.ee>
content-type: Text/Plain; charset=US-ASCII
organization: TU Chemnitz
mime-version: 1.0
newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.win32,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.controls,relcom.comp.os.windows.prog,comp.os.ms-windows.programmer.tools.misc,relcom.comp.os.windows.prog,fido.ger.windows.prog