title: Python win32print printer status confusion
body: <p>I've been using the <a href="http://docs.activestate.com/activepython/2.4/pywin32/win32print.html" rel="nofollow noreferrer">win32print</a> module for Python to try to get various information about sets of printers, such as driver name, job count, port being used, status, etc. It's been mostly successful, however I am having a lot of trouble making any use of the status code that win32print returns from the API.</p>
  <p>I've been using the win32print.GetPrinter method, which returns a PRINTER_INFO_ dictionary, with one mapping being Status. However, it isn't documented what status code corresponds to what printer status. It seems that 0 is idle, 1 is paused, but other than that I'm not sure what it means.</p>
  <p>When I looked up values of constants for the windows 32bit API, I found <a href="http://doc.pcsoft.fr/en-US/?6510001&amp;name=valeur-des-constantes-api-windows-32-bits&amp;q=Find%20out" rel="nofollow noreferrer">this page</a>, but none of the status codes I ever get back seem to match that. Often times, I get a status code like 1052800 (got that one from an Epson printer), which is not on the list from the win32api constants.</p>
  <p>I have also tried using WMI modules to do this with even less success.</p>
  <p>I would like to get printer status codes for printer out of paper, printer door open, toner low, paper jam, etc. Does anyone have any tips on where to find what these status codes mean, or even a better solution to finding printer status completely?</p>