---
title: "PMCreateGenericPrinter(_:)"
framework: applicationservices
role: symbol
role_heading: Function
path: applicationservices/1461960-pmcreategenericprinter
---

# PMCreateGenericPrinter(_:)

Creates a generic printer object.

## Declaration

```swift
func PMCreateGenericPrinter(_ printer: UnsafeMutablePointer<PMPrinter?>) -> OSStatus
```

## Parameters

- `printer`: A pointer to your doc://com.apple.documentation/documentation/applicationservices/pmprinter variable. On return, the variable refers to a new printer object that represents the generic formatting printer. You are responsible for releasing the printer object with the function doc://com.apple.documentation/documentation/applicationservices/1461402-pmrelease.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion This function provides a way to create a PMPrinter object that represents the generic formatting printer.

## See Also

### Creating Printer Objects

- [PMServerLaunchPrinterBrowser(_:_:)](applicationservices/1460175-pmserverlaunchprinterbrowser.md)
- [PMServerCreatePrinterList(_:_:)](applicationservices/1459953-pmservercreateprinterlist.md)
- [PMSessionCreatePrinterList(_:_:_:_:)](applicationservices/1460119-pmsessioncreateprinterlist.md)
- [PMPrinterCreateFromPrinterID(_:)](applicationservices/1461363-pmprintercreatefromprinterid.md)
