Printer Monitor - take 2

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi al

Please can someone point me in a right direction/tell me how to go about building an appliation that can monitor the printer queue on a windows platform(2000,XP,NT and 2003). What are the steps I need to follow in order to monitor the queues and store the info eg have a counter to count the number of pages printed by a specific username. I have a a brief look on the web and I have had no problem finding limited VB.NET stuff, but I want C# examples, and I would like to work with the windows API's, instead of downloading a component, because then most likely I will have to buy the component... So I was wondering does anyone here know how to do this, or know of any C# resources that explain this concept well

I am not an exteme newbie to c# but I am still learning and I would like to make this my "learning" project, so any help/suggestions on this topic will be immensly appreciated

Thanks in advanc
Kevi
 
Take a look at the System.Management namespace classes, these are simple
wrapper arround WMI, and WMI contains a number of CIM classes to manage
printers and print queues.
Search MSDN for win32_printer.

Willy.
 
Back
Top