Printer Driver Serial communication Question

Discussion in 'Windows Vista Drivers' started by Mike, Jun 1, 2004.

  1. Mike

    Mike Guest

    I'm writing a printer driver. I modified the pjlmon.c from the WINDDK. When the printer is not printing a job, I want to send a command to the printer via Serial communication and be able to read back the answer (so I could get the printer status). I have no problem sending the command, I used the RawDataToPrinter() function that I found as an example in the MSDN library. But I can't find a way to read from the printer. I always get an invalid handle. I tried with ReadCommand() and ReadPrinter(). I understand that the com port should always be open. But how can I get the right handle to read from it

    Mike
     
    Mike, Jun 1, 2004
    #1
    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.