Printer Monitor - take 2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin

    Printer Monitor - take 2

    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,X P,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

  • Willy Denoyette [MVP]

    #2
    Re: Printer Monitor - take 2

    Take a look at the System.Manageme nt 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.
    "Kevin" <anonymous@disc ussions.microso ft.com> wrote in message
    news:14335009-BA7F-4C13-BA8B-44769F1522C5@mi crosoft.com...[color=blue]
    > Hi all
    >
    > 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,X P,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 advance
    > Kevin
    >[/color]


    Comment

    Working...