Solved

LPT port access from Visual C++

Posted on 1998-11-24
3
1,278 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

738 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