Partager via


2.2.3.12 Status and Attribute Values

The Status and Attribute Values in the following tables specify printer statuses and printer attributes.

Printer status name/value

Description

PRINTER_STATUS_BUSY

0x00000200

The printer is busy.

PRINTER_STATUS_DOOR_OPEN

0x00400000

The printer door is open.

PRINTER_STATUS_ERROR

0x00000002

The printer is in an error state.

PRINTER_STATUS_INITIALIZING

0x00008000

The printer is initializing.

PRINTER_STATUS_IO_ACTIVE

0x00000100

The printer is in an active input or output state.

PRINTER_STATUS_MANUAL_FEED

0x00000020

The printer is in a manual feed state.

PRINTER_STATUS_NOT_AVAILABLE

0x00001000

The printer is not available for printing.

PRINTER_STATUS_NO_TONER

0x00040000

The printer is out of toner.

PRINTER_STATUS_OFFLINE

0x00000080

The printer is offline.

PRINTER_STATUS_OUTPUT_BIN_FULL

0x00000800

The printer's output bin is full.

PRINTER_STATUS_OUT_OF_MEMORY

0x00200000

The printer has run out of memory.

PRINTER_STATUS_PAGE_PUNT

0x00080000

The printer cannot print the current page.

PRINTER_STATUS_PAPER_JAM

0x00000008

Paper is stuck in the printer.

PRINTER_STATUS_PAPER_OUT

0x00000010

The printer is out of paper.

PRINTER_STATUS_PAPER_PROBLEM

0x00000040

The printer has an unspecified paper problem.

PRINTER_STATUS_PAUSED

0x00000001

The printer is paused.

PRINTER_STATUS_PENDING_DELETION

0x00000004

The printer is being deleted as a result of a client's call to RpcDeletePrinter. No new jobs can be submitted on existing printer objects for that printer.

PRINTER_STATUS_POWER_SAVE

0x01000000

The printer is in power-save mode.<197>

PRINTER_STATUS_PRINTING

0x00000400

The printer is printing.

PRINTER_STATUS_PROCESSING

0x00004000

The printer is processing a print job.

PRINTER_STATUS_SERVER_OFFLINE

0x02000000

The printer is offline.<198>

PRINTER_STATUS_SERVER_UNKNOWN

0x00800000

The printer status is unknown.<199>

PRINTER_STATUS_TONER_LOW

0x00020000

The printer is low on toner.

PRINTER_STATUS_USER_INTERVENTION

0x00100000

The printer has an error that requires the user to do something.

PRINTER_STATUS_WAITING

0x00002000

The printer is waiting.

PRINTER_STATUS_WARMING_UP

0x00010000

The printer is warming up.

Printer attribute name/value

Description

PRINTER_ATTRIBUTE_DEFAULT

0x00000004

Indicates the printer is the default printer in the system.

PRINTER_ATTRIBUTE_DIRECT

0x00000002

Job is sent directly to the printer (it is not spooled).

PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST

0x00000200

If set and printer is set for print-while-spooling, any jobs that have completed spooling are scheduled to print before jobs that have not completed spooling.<200>

PRINTER_ATTRIBUTE_ENABLE_BIDI

0x00000800

Indicates whether bidirectional communications are enabled for the printer.<201>

PRINTER_ATTRIBUTE_ENABLE_DEVQ

0x00000080

Setting this flag causes mismatched documents to be held in the queue.<202>

PRINTER_ATTRIBUTE_FAX

0x00004000

If set, printer is a fax printer.

PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS

0x00000100

If set, jobs are kept after they are printed. If cleared, jobs are deleted.<203>

PRINTER_ATTRIBUTE_LOCAL

0x00000040

Printer is a local printer.

PRINTER_ATTRIBUTE_NETWORK

0x00000010

Printer is a network printer connection.

PRINTER_ATTRIBUTE_PUBLISHED

0x00002000

Indicates whether the printer is published in the directory service (DS).<204>

PRINTER_ATTRIBUTE_QUEUED

0x00000001

If set, the printer spools and starts printing after the last page is spooled. If cleared, and PRINTER_ATTRIBUTE_DIRECT is not set, the printer spools and prints while spooling.

PRINTER_ATTRIBUTE_RAW_ONLY

0x00001000

Indicates that only RAW data type print jobs MUST be spooled.<205>

PRINTER_ATTRIBUTE_SHARED

0x00000008

Printer is shared.

PRINTER_ATTRIBUTE_TS

0x00008000

Printer is a redirected terminal server printer.

PRINTER_ATTRIBUTE_WORK_OFFLINE

0x00000400

Indicates whether the printer is currently connected. If the printer is not currently connected, print jobs continue to spool.<206>

Job status name/value

Description

JOB_STATUS_BLOCKED_DEVQ

0x00000200

Printer driver cannot print the job.<207>

JOB_STATUS_COMPLETE

0x00001000

Job has been delivered to the printer.

JOB_STATUS_DELETED

0x00000100

Job has been deleted.<208>

JOB_STATUS_DELETING

0x00000004

Job is being deleted.

JOB_STATUS_ERROR

0x00000002

An error is associated with the job.

JOB_STATUS_OFFLINE

0x00000020

Printer is offline.

JOB_STATUS_PAPEROUT

0x00000040

Printer is out of paper.

JOB_STATUS_PAUSED

0x00000001

Job is paused.

JOB_STATUS_PRINTED

0x00000080

Job has printed.

JOB_STATUS_PRINTING

0x00000010

Job is printing.

JOB_STATUS_RESTART

0x00000800

Job has been restarted.<209>

JOB_STATUS_SPOOLING

0x00000008

Job is spooling.

JOB_STATUS_USER_INTERVENTION

0x00000400

Printer has an error that requires the user to do something.<210>