This message was edited by Phat Nat at 2005-4-26 18:33:49
Hey there Hans,
I'm not a windows programmer (only DOS) so I can't make a program for you, but the following is an excerpt from David Jurgens HelpPC listing:
Parallel Printer Port
Port 3BC printer data output (readable)
|7|6|5|4|3|2|1|0| ports 278, 378, 3BC
| | | | | | | +---- data bit 0, hardware pin 2
| | | | | | +----- data bit 1, hardware pin 3
| | | | | +------ data bit 2, hardware pin 4
| | | | +------- data bit 3, hardware pin 5
| | | +-------- data bit 4, hardware pin 6
| | +--------- data bit 5, hardware pin 7
| +---------- data bit 6, hardware pin 8
+----------- data bit 7, hardware pin 9
Port 3BD printer status register (Parallel Printer Port)
|7|6|5|4|3|2|1|0| ports 279, 379, 3BD
| | | | | | | +---- 1 = time-out
| | | | | +-+----- unused
| | | | +-------- 1 = error, pin 15
| | | +--------- 1 = on-line, pin 13
| | +---------- 1 = out of paper, pin 12
| +----------- 0 = Acknowledge, pin 10
+----------- 0 = busy, pin 11
Port 3BE printer control register (Parallel Printer Port)
|7|6|5|4|3|2|1|0| ports 27A, 37A, 3BE
| | | | | | | +---- 1 = output data to printer, (pin 1)
| | | | | | +----- 1 = auto line feed, (pin 14)
| | | | | +------ 0 = initialize printer, (pin 16)
| | | | +------- 1 = printer reads output, (pin 17)
| | | +-------- 0 = IRQ disable,1=IRQ enable for ACK
+-+-+--------- unused
Set LPT2 on the OS/2 system to a general printer, such as an EPSON FX printer.
If you connect a second crossover parallel cable to LPT2 of the OS/2 system and then into the Windows XP machine, then when you print to LPT2 it would send all the information to the WinXP LPT port. From there it is quite easy to capture the data (which will be sent out as seen on screen with possibly a few printer codes).
There are lots of Windows programmers around here who I'm sure could help you out with the rest. Good Luck,
Phat Nat