Contents

PMServerCreatePrinterList(_:_:)

Creates a list of printers available to a print server.

Declaration

func PMServerCreatePrinterList(_ server: PMServer?, _ printerList: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus

Parameters

  • server:

    The print server whose printers you want to obtain. To specify the local print server, pass the constant kPMServerLocal. Currently, you may specify only the local print server.

  • printerList:

    A pointer to your Cfarray variable. On return, the variable refers to a Core Foundation array containing the printers available to the specified print server. Each element in the array is a PMPrinter object. You are responsible for releasing the array.

Return Value

A result code. See Result Codes.

See Also

Creating Printer Objects