Solved

LPT port access from Visual C++

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
Viewers will learn how to use the Hootsuite Dashboard.

810 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