Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

LPT port access from Visual C++

Posted on 1998-11-24
3
Medium Priority
?
1,289 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 600 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

636 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