Sniffing LPT Traffic
- by ArcherT
I need to intercept LPT output traffic. After a couple of hours of research, I've come to understand that the only way to do this is by writing a kernel-mode driver, more precisely a "filter driver"...?
I've downloaded the WDK, but the terminology and vast number of driver types is a little overwhelming.
I'm basically trying to understand what kind of driver I should be writing; my target environment is Windows XP SP2 and 3 only.
Some background info, if it matters: I have a bunch of legacy DOS apps that print to LPT1. I'd like to be able to capture this output and redirect this data (after GDI calls) to a modern USB (network) printer. Fortunately, the latter part of the problem's easy.
I'm hoping someone could point me in the right direction. TIA.