Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Parallel Port accessing Pin 14, 16, 17

Posted on 1998-06-07
Medium Priority
Last Modified: 2013-11-19
I'm accessing the parallel port with ReadFile() and WriteFile(). Do anybody know how to access the output pins 14, 16, 17 (Auto Feed, Initialize, Select Input) without writing a vxd - Just trought the existing lpt.vxd?
Question by:Coma
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Gus012498 earned 600 total points
ID: 1316169
On W95 you can directly write to base_adr+2 to access the control port.
On WinNT you can use the DirectNT driver to access the hardware directly.
The DirectNT/DirectIO driver can be found at

Author Comment

ID: 1316170
Thanx, but can you please give me a code example? Or how can I get this base_adr? I only get a handle after CreateFile() with LPT(x)!

Author Comment

ID: 1316171
Thanx, but can you please give me a code example? Or how can I get this base_adr? I only get a handle after CreateFile() with LPT(x)!

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question