Intercepting drivers

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Frank Pelzer (Pelzer_at_discussions.microsoft.com)
Date: 09/13/04


Date: Mon, 13 Sep 2004 11:27:02 -0700

Do I have to become a device driver developer to intercept a device driver or
is there a higher level available?

My problem is the following. I have a legacy program which eventually uses
the physical serial port by means of serial.sys. I have to filter/intercept
the byte-stream over the serial line.

With my restricted possibilities I see 3 (extreme) ways to do this job:

(a) Write your own serial driver (I am not and will not be able do this,
since it is too far from my originial goals)

(b) Spy sytem etc. calls of the legacy win32 application (pfui!)

(c) Take an additional IBM-PC, read from COM1, filter, write to COM2, and
the other way around (Hhmm, sounds simple, fast, and clean)

Is there something smarter which I can do in the user mode level of the host
which runs the application which uses the serial port? Ideally as easy as
option (c), however without the need of additional hardware?

-- Frank



Relevant Pages

  • Re: Programming hardware controls
    ... If the device has a fairly simple serial port or parallel port ... protocol you can do it from high level java. ... For anything else, you need to write a device driver, usually in C++ ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: An issue about DriverUnload
    ... my device is a TouchScreen use serial port just like a mouse ... in AddDevice function. ... RegisterDeviceNotification) to device driver? ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.development.device.drivers)
  • Re: Yet another for Serial to Ethernet!
    ... You want to run the serial port at 1M baud? ... device driver. ...
    (comp.arch.embedded)
  • Re: No Console
    ... data is written to the serial port without checking the seral port ... After getty starts the serial port device driver, ... I had to add the "clocal" option to the tty runmodes options. ...
    (comp.unix.aix)