sane-project-website/old-archive/2000-06/0167.html

146 wiersze
6.0 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: How to support a scanner without documentation</TITLE>
<META NAME="Author" CONTENT="Nathan Stenzel (nathanjs@csj.net)">
<META NAME="Subject" CONTENT="Re: How to support a scanner without documentation">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: How to support a scanner without documentation</H1>
<!-- received="Thu Jun 22 16:09:22 2000" -->
<!-- isoreceived="20000622230922" -->
<!-- sent="Thu, 22 Jun 2000 18:18:27 -0500" -->
<!-- isosent="20000622231827" -->
<!-- name="Nathan Stenzel" -->
<!-- email="nathanjs@csj.net" -->
<!-- subject="Re: How to support a scanner without documentation" -->
<!-- id="39529EC3.C642B9FC@csj.net" -->
<!-- inreplyto="394F2FED.3A6ED745@gmx.net" -->
<STRONG>From:</STRONG> Nathan Stenzel (<A HREF="mailto:nathanjs@csj.net?Subject=Re:%20How%20to%20support%20a%20scanner%20without%20documentation&In-Reply-To=&lt;39529EC3.C642B9FC@csj.net&gt;"><EM>nathanjs@csj.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Jun 22 2000 - 16:18:27 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0168.html">Petter Reinholdtsen: "Re: Towards release 1.0.3?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0166.html">Henning Meier-Geinitz: "Re: Agfa Snapscan"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0164.html">Jochen Eisinger: "Re: How to support a scanner without documentation"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0170.html">Jochen Eisinger: "Re: How to support a scanner without documentation"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0170.html">Jochen Eisinger: "Re: How to support a scanner without documentation"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#167">[ date ]</A>
<A HREF="index.html#167">[ thread ]</A>
<A HREF="subject.html#167">[ subject ]</A>
<A HREF="author.html#167">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Wow!
<BR>
If I send you a copy of my scanner driver disk, could you do that with it?
<BR>
I have a Mustek GC6000 handheld scanner and a Plustek 4800P flatbed scanner.
<BR>
I would greatly appreciate it if the the other sane-devel guys had that code!
<BR>
<P>I can't even seem to compile the scanner code that I am supposed to be testing.
<BR>
ha ha ha
<BR>
<P>Jochen Eisinger wrote:
<BR>
<P><EM>&gt; Hi,
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; 5) Disassembling the Windows driver: I have never done this, other people
</EM><BR>
<EM>&gt; &gt; on this list may talk about this. I think it's a lot of work and needs
</EM><BR>
<EM>&gt; &gt; good understatement of assembler and the windows API.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I've done this with a Mustek PP driver...
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; There are several files in the windows/twain/a4s2/ directory. The only
</EM><BR>
<EM>&gt; interesting file was scanobj.dll: this file calls a a4sii300.386 (VxD).
</EM><BR>
<EM>&gt; scanobj.dll is quite easy to read, there are several functions like
</EM><BR>
<EM>&gt; PowerOn/Off, GetDeviceInfo, Start/StopScan, GetImage, SetParameters,
</EM><BR>
<EM>&gt; etc... I used this information for a) figuring out what parameters the
</EM><BR>
<EM>&gt; vxd driver needs and b) what vxd function no is supposed to do. Next I
</EM><BR>
<EM>&gt; disassembled the vxd and translated the assembler code to C code which
</EM><BR>
<EM>&gt; is quite straight forward. Now comes the difficult part. You have to
</EM><BR>
<EM>&gt; replace names like sub9CF or var65535_word with names like lock_port and
</EM><BR>
<EM>&gt; image_width. This is quite difficult, but it's possible. Now you have
</EM><BR>
<EM>&gt; the sources of a working scanner driver...
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; -- jochen
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; --
</EM><BR>
<EM>&gt; Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
</EM><BR>
<EM>&gt; To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20How%20to%20support%20a%20scanner%20without%20documentation&In-Reply-To=&lt;39529EC3.C642B9FC@csj.net&gt;">majordomo@mostang.com</A>
</EM><BR>
<P><P>&nbsp;Robert Morris College
<BR>
For Information
<BR>
Visit Us: <A HREF="http://www.rmcil.edu">http://www.rmcil.edu</A>
<BR>
Or Email us: <A HREF="mailto:enroll@smtp.rmcil.edu?Subject=Re:%20How%20to%20support%20a%20scanner%20without%20documentation&In-Reply-To=&lt;39529EC3.C642B9FC@csj.net&gt;">enroll@smtp.rmcil.edu</A>
<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:%20How%20to%20support%20a%20scanner%20without%20documentation&In-Reply-To=&lt;39529EC3.C642B9FC@csj.net&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0168.html">Petter Reinholdtsen: "Re: Towards release 1.0.3?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0166.html">Henning Meier-Geinitz: "Re: Agfa Snapscan"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0164.html">Jochen Eisinger: "Re: How to support a scanner without documentation"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0170.html">Jochen Eisinger: "Re: How to support a scanner without documentation"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0170.html">Jochen Eisinger: "Re: How to support a scanner without documentation"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#167">[ date ]</A>
<A HREF="index.html#167">[ thread ]</A>
<A HREF="subject.html#167">[ subject ]</A>
<A HREF="author.html#167">[ 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>Thu Jun 22 2000 - 16:13:31 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>