---
title: "PMServerCreatePrinterList(_:_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1459953-pmservercreateprinterlist
---

# PMServerCreatePrinterList(_:_:)

Creates a list of printers available to a print server.

## Declaration

```swift
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 doc://com.apple.corefoundation/documentation/CoreFoundation/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

Return Value A result code. See Result Codes.

## See Also

### Creating Printer Objects

- [PMServerLaunchPrinterBrowser(_:_:)](applicationservices/1460175-pmserverlaunchprinterbrowser.md)
- [PMSessionCreatePrinterList(_:_:_:_:)](applicationservices/1460119-pmsessioncreateprinterlist.md)
- [PMPrinterCreateFromPrinterID(_:)](applicationservices/1461363-pmprintercreatefromprinterid.md)
- [PMCreateGenericPrinter(_:)](applicationservices/1461960-pmcreategenericprinter.md)
