I would like to programmatically get the current status of a printer.
What I tried was to use GetPrinter() to load the PRINTER_INFO_2 structure into a buffer say pi2. Now I monitor the parameter pi2->Status to learn about the state of the printer. But what I noticed is that this member allways stays 0! I even switched the printer to 'offline' mode and the the member still showed 0. Why doesn't it update? (I repeatedly call GetPrinter() each time I want to read the status of any member )
PS: every other member seems to update properly, even pi2->cJobs shows current values