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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] And look for Seergev Ageev on http://www.torry.net/pages.php?id=227 On 17/12/2007, Ross Levis <[EMAIL PROTECTED]> 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.
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
