"Ivco" <> wrote:
>
>We have the classical example of an old application that uses parallel port
>to talk to a device connected to the parallel port, the application cannot
>be changed but the interface of the device evolved to USB.
>
>Now, there is already implemented a proprietary WDM USB function driver to
>talk to the USB device. The idea is to create a virtual parallel port which
>will be used by the application.
>
>What should be the right design for that virtual port driver?
>I was thinking about two possible cases:
>1. Modify the existing proprietary USB driver by adding "virtual port
>functionality"
>2. Possibly use a filter driver that implements "virtual port
>functionality" - not sure if that is going to work
>
>How would you approach this kind of problem?
The word "port" is overloaded. Are you talking literally about "virtual
I/O ports", in the sense that your application actually uses I/O port
instructions? If so, then your task is completely hopeless. You'll need
to rewrite the application.
If the old application uses ReadFile, WriteFile, and DeviceIoControl to
talk to the parallel port, then your task is not all that difficult.
--
Tim Roberts,
Providenza & Boekelheide, Inc.