PMServerCreatePrinterList(_:_:)
Creates a list of printers available to a print server.
Declaration
func PMServerCreatePrinterList(_ server: PMServer?, _ printerList: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatusParameters
- 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
PMPrinterobject. You are responsible for releasing the array.
Return Value
A result code. See Result Codes.