Hello Murtan, I'd like first of all to thank you for your co-operation. I really appreciate it. Now on to your questions.
Does the program think that a printer is attached to the LPT or is it some other device?
I'm not too sure, but I think the program does think a printer is attached to the LPT. It might seem weird that I say "I think", but the thing is, I'm supposed to do this for an internship and I haven't seen the program myself. My boss just asked me to write a program that would intercept information going to LPT1 and store it somewhere else, in, say, an xml file. He also seems to be intentionally vague about this.
What Operating System does the program run under?
The program runs under windows. He did mention that it was running on Dosbox.
Does the program have any configuration to select the LPT or printer?
I don't think so, but I could try to find out later, though he isn't around.
I doubt this is an option, but is it possible for you to modify and re-build the program?
No, this is not possible.
The stream of bytes that Windows sends to the printer very rarely reflects the characters that are being printed. For example, if you put "Hello, World" in notepad and print it, the resulting byte stream to the printer will far exceed the 12 characters you typed.
I'd imagine though, that that stream of bytes would also contain the information(say the characters) being printed, right? Such that if one could get the stream of bytes, then theoretically, one could get the information being printed, right?
Are you trying to catch the byte-stream or the characters?
Optimally, I'd like to catch the characters but at this point, I'd be more than ecstatic if I could get just the byte-stream.
Thanks once again for your co-operation thus far.