Tech Support > Microsoft Windows > Drivers > Print Data
Print Data
Posted by Matthias on May 30th, 2005


Hallo,

I want to write a monitoring-tool, which gets all print jobs in a
device-independent format and can be used with all printerdrivers.
I took some looks on print processors and print providers, but i am not
sure, if thats what i'm looking for.

TIA,
Matthias

Posted by Kiran on June 3rd, 2005


What did you mean by "device-independent format" ? I guess you meant all
printers irrespective of vendor.
You can enumerate all the printers and enumerate jobs for each printer to
get all the jobs at any instance.
You can use FindFirstPrinterChangeNotification,
FindNextPrinterChangeNotification, functions with PRINTER_CHANGE_ADD_JOB as
change option. to monitor continously along with wait functions. Refer MSDN
for usage.

-Kiran


Similar Posts