How to install a custom serial.sys driver under XP

Discussion in 'Windows Vista Drivers' started by Stéphane Guillard, Sep 19, 2008.

  1. Hello,

    My 1st post on this NG, so pardon if this question has been asked/answered a
    thousand million times...

    In 2002, we developed for a customer of ours a VB6 application which runs
    under NT4.

    This application analyzes the behaviour of an embedded electronic board,
    which produces messages on a serial (RS232) port. The purpose of the
    analysis process is to accurately measure the timings of the bytes sent by
    the board.

    Thus we developed a custom serial.sys, which datestamped each byte received
    using the kernel's system counters.

    Now our customer asks us to migrate the application to Windows XP. This
    poses a problem, as our driver is overwritten by the standard XP serial.sys
    as soon as it is installed.

    My question is thusly, how can we install a custom serial.sys driver under
    XP, in a system friendly manner where XP won't overwrite it ?

    Regards,
     
    Stéphane Guillard, Sep 19, 2008
    #1
    1. Advertisements

  2. Stéphane Guillard

    Pavel A. Guest

    Does your driver need to behave like the standard serial
    driver, or only your app reads the data
    ( no compatibility needed ) ?

    --pa
     
    Pavel A., Sep 19, 2008
    #2
    1. Advertisements

  3. Hi,
    No, there is no compatibily required for other apps, as our usermode app is
    the only client of the custom driver. This app is running on a dedicated PC
    which has no other use.

    Regards,
     
    Stéphane Guillard, Sep 19, 2008
    #3
  4. Stéphane Guillard

    Pavel A. Guest

    Then you can replace the standard serial driver to your
    own, on same hardware ID (specify it in your INF file).
    Maybe you'd also want to give it a custom class, not "Ports",
    to avoid confusion.

    --PA
     
    Pavel A., Sep 19, 2008
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.