Technical Document #96

Technical Document #96
Is it possible to write my own parallel port driver using WinDriver?

WinDriver regards the Parallel port as if it were an ISA card (with I/O addresses 0x378-0x37f). You can therefore select to create a driver for the PC's parallel port by selecting the "Parallel port" option from the DriverWizard's "Card Information" window. You will then be able to read/write the I/O addresses of the parallel port, view the relevant registers and listen to the parallel port interrupt. You will also be able to edit the resources definitions, as with any other ISA card. In addition, you can use the DriverWizard to generate a skeletal diagnostics code, which utilizes WinDriver's API to access the parallel port's I/O addresses and register to listen to the parallel port's interrupt.

In v11.1.0 and below of WinDriver for Windows, you can refer to the sample Visual Basic parallel port WinDriver application (including source code), in the WinDriver\vb\samples\parallel directory.

Please note that WinDriver does not handle possible conflicts with the operating system's parallel port driver, and you may need to disable this driver when using WinDriver to access the parallel port.