Re: UStatusThread question by Bruce
Bruce
Fri Dec 12 09:23:41 CST 2003
Sure, you can do a write command from the thread. The problem is that the thread runs independent
of the rest of the driver, so there is no guarantee that when you send the data to the printer that
it won't get injected into the data stream in the middle of sending printing data to the printer.
If the printer can distinguish between both of them, that would be the way to go. Otherwise, I
would set up some way to tell the monitor to query the printer every 5 minutes if the printer is not
printing.
On Tue, 9 Dec 2003 06:54:18 -0800, "SR" <roussese@genieo.ca> wrote:
>Hi,
>
> we are currently writting a language monitor using the
>base code given by Microsoft (pjlmon.c). We would like
>to be able to get a status from the printer every 5
>minutes, the printer is bi-di but does not send it's
>status, except when asked. Is it "legal" or possible to
>do a WriteCommand in the UStatusThread? We have try it,
>but it does loop all the time.
>
>Have any idea?
>
>Thanks