Thread: Getting the printer status

  1. #1
    Registered User
    Join Date
    May 2005

    Getting the printer status

    Hi all,

    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

    kindly help

  2. #2
    Registered User
    Join Date
    Mar 2005
    Mountaintop, Pa
    Maybe this can be of some help to you:

    Printer Status

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Set Printer Prior To Loading Print Dialog Box
    By Beaner in forum Windows Programming
    Replies: 3
    Last Post: 10-10-2008, 01:02 PM
  2. changing property (layout) of a printer
    By leojose in forum Windows Programming
    Replies: 5
    Last Post: 12-05-2005, 07:16 AM
  3. Troubles with Sockets
    By cornholio in forum Windows Programming
    Replies: 6
    Last Post: 10-26-2005, 05:31 AM
  4. printer Status always 0
    By john dumas in forum Windows Programming
    Replies: 2
    Last Post: 12-23-2002, 04:11 PM
  5. Success - Output to Printer
    By noraa in forum C Programming
    Replies: 5
    Last Post: 08-04-2002, 09:12 AM