[DUG] LPT ports
Ross Levis
ross at stationplaylist.com
Wed Dec 19 16:12:54 NZDT 2007
Thanks Paul, however, the first link is also only for DOS based systems up
to Windows ME.
The Sergey Ageev component "DirectPort" is similar to what I am using
already -- another component on that page called SmallPort. Both components
allow accessing ports directly as you can in MS-DOS and up to Windows ME.
I've been using SmallPort for a few years and it works fine up to Windows
Vista.
However, neither component provides a way to find the I/O address of a
specific port. I'm currently using a unit which uses several
HKEY_LOCAL_MACHINE registry locations to obtain the I/O address of an LPT
port, but this is not working in the case of a USB based removable LPT port.
All I need is the I/O address allocated to this LPT port. I don't need a
component to access the port itself. It can be set as LPT1, LPT2, LPT3 etc
in the configuration, but then how does a program see what LPT ports are
available? There must be some way.
Any further ideas?
Thanks,
Ross.
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Paul A Norman
Sent: Wednesday, 19 December 2007 12:18 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] LPT ports
Dear Ross,
Never used these, found them years ago(!), might be worth checking through
and see if they give any routine for doing that. I am thinkinhg that one of
the things below may have an iteration process for looking.
Never done it myself though!
Paul
TRY://
http://www.torry.net/authorsmore.php?id=1332
This guy has had stuff on the net in the past Lars at dybdahl.dk
And look for Seergev Ageev on http://www.torry.net/pages.php?id=227
On 17/12/2007, Ross Levis <ross at stationplaylist.com> wrote:
Does anyone know of a way to find all LPT ports installed on a PC and the
I/O address of the ports.
Up to now I've been using a 3rd party routine I found on the internet which
uses the registry to obtain this information, and this has worked well for
years, but a user has installed a USB based LPT port and it doesn't appear
in the usual place in the registry, although Windows sees it as LPT1.
I need the physical I/O address of the port as I need this to access the
individual pins on the port, using a 3rd party device driver service which
allows low level access to ports.
Thanks,
Ross.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20071219/89771a71/attachment.html
More information about the Delphi
mailing list