Solved

LPT port access from Visual C++

Posted on 1998-11-24
3
1,274 Views
Last Modified: 2013-11-15
Using API calls and the standard LPT.VXD Windows driver, how can I determine the condition of the parallel port's status lines?  I am using CreateFile("LPT1...") and WriteFile to send characters out to a device, but I need to know the value of the printer status register.  I want to use API calls so this would work in 95 or NT.  Serial ports have calls like GetCommModemStatus, but is there none for the parallel port?
0
Comment
Question by:walseth
[X]
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
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 1178587
What about trying 'OpenPrinter()', 'ReadPrinter()' ... API calls? There's also an article that describes the handling of raw data thorugh printer ports (MS KB Article ID Q138594)
0
 
LVL 2

Accepted Solution

by:
ivi earned 200 total points
ID: 1178588
0
 

Author Comment

by:walseth
ID: 1178589
This is a good answer.  In fact, I had already decided to go with Mr. Victor Ishikev's virtual device driver (TVicPort), and received my registered version this morning.  This driver allows me to access the LPT port registers directly--I have tested it on several machines already.

However, the original question really remains unanswered--that is, how to use existing API calls to do this stuff.  Still, I do not reject the answer because I now think that is IMPOSSIBLE.

Thanks to anyone else who gave this some thought.      
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If your app took Google’s lash recently, here are the 5 most likely reasons.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

749 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