Windows Parallel or LPT Port Monitoring

Does anyone know a good library so that we can programmatically control the parallel port (or LPT port) in the windows. There are many good ones for serial ports, but I have not managed to use parallel ports yet. C # would be preferable, but we would be happy to work with Interop if it is c / C ++.

thank

+3
source share
2 answers

You need a driver that provides access to the parallel port. The inpout32.dll solution is almost universally used. It also allows you to call helper routines to execute INP and OUT cpu instructions. Everything you ever wanted to know about parallel ports, including encoding examples for inpout32, is on Jan Axelson's homepage .

+2
source

Are you looking for something like this? How to find available parallel ports and their I / O addresses using Delphi and WMI in Delphi, but I think you can also find WMI in C #.

+1
source

Source: https://habr.com/ru/post/1793582/


All Articles