Board index » delphi » NT print queue status

NT print queue status

I have written a "help-me-choose-the-right-printer"-application in which I
would like to present various informationen like is the printer buzy?, is
the queue paused?, how many jobs are there?. Does anyone know how to query
a Windows NT 3.51 Server for this information?

I would be very grateful if someone would just turn me in the right
direction...

Bent

 

Re:NT print queue status


In message <01bb7d39$412e93c0$3cc75...@pc4931.cowi.dk>, "Bent Christensen" <b...@cowi.dk> said:

Quote
> I have written a "help-me-choose-the-right-printer"-application in which I
> would like to present various informationen like is the printer buzy?, is
> the queue paused?, how many jobs are there?. Does anyone know how to query
> a Windows NT 3.51 Server for this information?

> I would be very grateful if someone would just turn me in the right
> direction...

If you are running your program under NT or 95, there's a set of APIs that
do exactly what you want. Start with this group of four:

        EnumPrinters() will tell you what printers are available.

        GetPrinter() will tell you about each printer's state.

        EnumJobs() will tell you what jobs are queued.

        GetJob() will tell you about each job.

If you want to do this from a Win3.x client though, I dunno.

-----------------------------------------------------------------------
Steve Rencontre               |  st...@dstrip.demon.co.uk (business)
If it works, it's obsolete.   |  steve...@cix.compulink.co.uk (private)
-----------------------------------------------------------------------

Other Threads