Hi all
I m developing a Printer driver UI, I m sending a command to the
printer in serial/parallel/usb port to check the settings and status of
the printer.The command are sent to the printer through Language
monitor.These things work well.
My question is if I unplug the serial/parallel/usb cable from the
system or in printer, My UI hangs for a while(1 minutes). Is there a way
to detect that the printer cable(serial/parallel/usb) is not connected
to the system.So that I can handle it and not pass the command to the
printer.