Parallel Port accessing Pin 14, 16, 17

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?
ComaAsked:
Who is Participating?
 
Gus012498Connect With a Mentor Commented:
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
 
ComaAuthor Commented:
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
 
ComaAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.