>> This returned Ready for one printer and no status for others...
>I also get ready for one printer but nothing for others.
>And the only one printer with status ready is the local one who is disconnected (OFF). Then all is wrong again with that code.
According to MSDN the GetPrinter should be called with 6 as the second parameter, not 2. And I need to verify, if the parameter structure is passed correctly.
With 6 I got more printers Ready. Anyway, if the return status is the combination of multiple statuses, how can we actually get the status translated into words?
I need to do more research on the problem and may be you can do too.
If it's not broken, fix it until it is.
My Blog