Contents

PMPrinterGetState(_:_:)

Obtains the current state of the print queue for a printer.

Declaration

func PMPrinterGetState(_ printer: PMPrinter, _ state: UnsafeMutablePointer<PMPrinterState>) -> OSStatus

Parameters

  • printer:

    The printer whose queue state you want to obtain.

  • state:

    A pointer to your PMPrinterState variable. On return, the variable contains a constant that indicates the current state of the print queue for the specified printer. Supported values are:

    • kPMPrinterIdle (queue is idle)

    • kPMPrinterProcessing (queue is processing a job)

    • kPMPrinterStopped (queue is stopped)

    See Pmprinterstate for a complete description of these constants.

Return Value

A result code. See Result Codes.

See Also

Accessing Information About a Printer