kopia lustrzana https://gitlab.com/sane-project/website
110 wiersze
4.1 KiB
HTML
110 wiersze
4.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: IOCTL codes for parallel port</TITLE>
|
|
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
|
|
<META NAME="Subject" CONTENT="Re: IOCTL codes for parallel port">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: IOCTL codes for parallel port</H1>
|
|
<!-- received="Sun Jan 7 06:44:59 2001" -->
|
|
<!-- isoreceived="20010107144459" -->
|
|
<!-- sent="Sun, 07 Jan 2001 16:05:07 +0100" -->
|
|
<!-- isosent="20010107150507" -->
|
|
<!-- name="Jochen Eisinger" -->
|
|
<!-- email="jochen.eisinger@gno.de" -->
|
|
<!-- subject="Re: IOCTL codes for parallel port" -->
|
|
<!-- id="3A5885A3.CB65336A@gno.de" -->
|
|
<!-- inreplyto="005f01c0734a$fd8af390$0200a8c0@grifon" -->
|
|
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20IOCTL%20codes%20for%20parallel%20port&In-Reply-To=<3A5885A3.CB65336A@gno.de>"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Sun Jan 07 2001 - 07:05:07 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0081.html">Jochen Eisinger: "[search engine] server is up & running"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0079.html">Christoph Knauer: "Re: sane,saned und XSane/Windows"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#80">[ date ]</A>
|
|
<A HREF="index.html#80">[ thread ]</A>
|
|
<A HREF="subject.html#80">[ subject ]</A>
|
|
<A HREF="author.html#80">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi!
|
|
<BR>
|
|
<P>[Max Vorobyev]
|
|
<BR>
|
|
<EM>> I've disassembled HP's driver for ScanJet 5s and convert most
|
|
</EM><BR>
|
|
<EM>> branches (according to TWAIN driver description) to C-code. But
|
|
</EM><BR>
|
|
<EM>> there is a problem: driver deals with LPT port via DeviceIoControl
|
|
</EM><BR>
|
|
<EM>> function with some IOCTL codes. All I have is numeric constants, but
|
|
</EM><BR>
|
|
<EM>> I need description of these command codes and (more important)
|
|
</EM><BR>
|
|
<EM>> buffer structures for them. Those codes are not described in MSDN.
|
|
</EM><BR>
|
|
<EM>> Perhaps, they should be in DDK of Windows NT. Can somebody help me
|
|
</EM><BR>
|
|
<EM>> to find descriptions?
|
|
</EM><BR>
|
|
<P>The TWAIN drivers of scanner have to access the parallel port directly
|
|
<BR>
|
|
so they have to run at ring-0 ("root"). Because normal DLL are executed
|
|
<BR>
|
|
at ring-3 they come with a ring-0-dll a so called virtual device driver.
|
|
<BR>
|
|
this VxD (the x is sometimes replaced by the name of the device -
|
|
<BR>
|
|
virtuall keyboard device = VKD). Functions in the ring-0-dll are called
|
|
<BR>
|
|
using DeviceIOControl, the IOCTL number is the function number, the
|
|
<BR>
|
|
inbuffer is the parameter stack the outbuffer is the returnstack.
|
|
<BR>
|
|
However there's no standard that restricts you in anyway. You'll have to
|
|
<BR>
|
|
disassemble the VxD driver and see what functions it implements... nasty
|
|
<BR>
|
|
work, btw ;-)
|
|
<BR>
|
|
<P>-- jochen
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20IOCTL%20codes%20for%20parallel%20port&In-Reply-To=<3A5885A3.CB65336A@gno.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0081.html">Jochen Eisinger: "[search engine] server is up & running"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0079.html">Christoph Knauer: "Re: sane,saned und XSane/Windows"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#80">[ date ]</A>
|
|
<A HREF="index.html#80">[ thread ]</A>
|
|
<A HREF="subject.html#80">[ subject ]</A>
|
|
<A HREF="author.html#80">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Sun Jan 07 2001 - 06:46:30 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|