This function
allows to get the current statement of a printing driver
int
prnGetState();
Return Values
0
- no tasks to print
1 - establishing connection with a printer
2 - connection established successfully, document is being printed
3 - connection with a printer is successfully closed
4 - connection with a printer is lost
5 - connection with a printer is being closed