Contents

PMPrinterCopyDeviceURI(_:_:)

Obtains the device URI of a given printer.

Declaration

func PMPrinterCopyDeviceURI(_ printer: PMPrinter, _ deviceURI: UnsafeMutablePointer<Unmanaged<CFURL>?>) -> OSStatus

Parameters

  • printer:

    The printer whose device URI you want to obtain.

  • deviceURI:

    A pointer to your Cfurl variable. On return, the variable refers to a Core Foundation URL that specifies the printer's device URI. You are responsible for releasing the URL. If an error occurs, the variable is set to NULL.

Return Value

A result code. See Result Codes.

Discussion

The device URI of a printer describes how to communicate with the device. For some devices, it also includes a unique identifier for the device.

See Also

Accessing Information About a Printer