Solved

Parallel Port accessing Pin 14, 16, 17

Posted on 1998-06-07
3
230 Views
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?
0
Comment
Question by:Coma
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
Gus012498 earned 200 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 ftp://ftp.heise.de/pub/ct/listings/ct9701.zip
0
 

Author Comment

by:Coma
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)!
0
 

Author Comment

by:Coma
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)!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now