lpt

Finding available LPT (parallel) ports and addresses in Delphi

Hi, I am doing direct I/O on a parallel port which is fine and necessary for speed. I would like to enumerate the available ports to offer the user a choice of ports at setup time rather than a tedious trawl through device manager to read the address manually. Does anyone know a means of doing this please? Many thanks, Brian ...

Checking for devices on LPT/parallel port

I'd like to require that a line printer be attached to the parallel port (and turned on!) before running my application. I had found code to check a particular line on the LPT for a particular level that was supposed to indicate that a printer was there and "ready", but I got inconsistent behavior with that, even between different print...

Sniffing LPT Traffic

I need to intercept LPT output traffic. After a couple of hours of research, I've come to understand that the only way to do this is by writing a kernel-mode driver, more precisely a "filter driver"...? I've downloaded the WDK, but the terminology and vast number of driver types is a little overwhelming. I'm basically trying to underst...

How to check if button is pressed and working on LPT port in C++

I have a button I got out of a random item around the house and I wanna hook it up to my LPT port and check if its pressed or not in C++ and if it is display a message. ...

LPT control on Windows

Hi, I am into new project, which should use microcontroller. The easiest way to program it is using parallel port. But, there are few things I hope you can help me with. Oh, and the preferred language is C and platform Windows. So, I studied LPT ports and Windows a bit, and from what I learned the most important is: Since Windows NT bas...

Parallel port with C#

Hello, I am trying to send data to LPT1 port with a C# program, unfortunately with no success.. I am using windows 7 x64. I tried both x86 and x64 (inpoutx64.dll) dll's.. With the x64 dll when I send: Output(888, 255); It just continues the program as everything went ok, but i can't see anything on my multimeter (only the static 0.02...

How to enumerate windows LPT ports and their I/O Range?

I am working on project for controlling some devices through lpt port. I am using inpout32.dll to get raw access to ports and now trying to enumerate all available LPT ports and get their I/O Range. I now I can check device manager, but is there any more automated way? Now I am trying to use WMI some sample code that should work but it...

inpou32.dll doesn't work on my computer

I've tried to run the following code on my PC. With PORT 0x378 (LPT1 data) it works fine. But with PORT 0x379 (LPT1 status) it always returns 126 no matter what I output in the previous line. 0x37A works too. I have Windows XP #define PORT 0x379 #define DATA 255 int main(int argc, char *argv[]) { Input input; Output output; ...

program the LPT port using Java. Really?

Conditions: OS is Windows XP have LPT port LED light bulb is connected to the LPT port Necessary: using Java to make the bulb flash Is it possible? Interested in real, proven solutions. Has anyone done this? I have our few options: the use javax.comm and RXTX. How successful is to use these solutions? ...

Cannot open LPT1(Printer Port) on win7 (64bit). The same applicaion works on win XP

I have an application that opens a port to a printer(it's a bar code printer) which works on win XP but when i switch to win7 (64bit) i have a problem. Here is the code: I am using this method to open the port: [DllImport("kernel32.dll", SetLastError = true)] public static extern SafeFileHandle CreateFile( St...