Solved

LPT port access from Visual C++

Posted on 1998-11-24
3
1,260 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
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.
Viewers will learn how to use the Hootsuite Dashboard.

757 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

18 Experts available now in Live!

Get 1:1 Help Now