---
title: PMPrinterGetDeviceURI
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/core_printing/1805547-pmprintergetdeviceuri
---

# PMPrinterGetDeviceURI

Obtains a copy of a printer's device URI.

## Declaration

```occ
OSStatus PMPrinterGetDeviceURI (
   PMPrinter printer,
   CFURLRef *deviceURI
);
```

## Parameters

- `printer`: The printer whose device URI you want to obtain.
- `deviceURI`: A pointer to your [doc://com.apple.corefoundation/documentation/CoreFoundation/CFURL](corefoundation/cfurl.md) variable. On return, the variable refers to a URI for the location of the printer device. In spite of the name, this function has Create/Copy semantics which means the caller must release the returned URL if it is not `NULL` and the result code `noErr` is returned.

## Return Value

A result code. See [Result Codes](../core_printing.md).

## See Also

### Accessing Information About a Printer

- [PMPrinterCopyDescriptionURL](../1459187-pmprintercopydescriptionurl.md)
- [PMPrinterCopyDeviceURI](../1460543-pmprintercopydeviceuri.md)
- [PMPrinterCopyHostName](../1462076-pmprintercopyhostname.md)
- [PMPrinterCopyPresets](../1459117-pmprintercopypresets.md)
- [PMPrinterGetCommInfo](../1461069-pmprintergetcomminfo.md)
- [PMPrinterGetDescriptionURL](1805546-pmprintergetdescriptionurl.md)
- [PMPrinterGetDriverCreator](../1459107-pmprintergetdrivercreator.md)
- [PMPrinterGetDriverReleaseInfo](../1464149-pmprintergetdriverreleaseinfo.md)
- [PMPrinterGetID](../1459606-pmprintergetid.md)
- [PMPrinterGetLanguageInfo](../1458956-pmprintergetlanguageinfo.md)
- [PMPrinterGetLocation](../1461467-pmprintergetlocation.md)
- [PMPrinterGetMakeAndModelName](../1463347-pmprintergetmakeandmodelname.md)
- [PMPrinterGetMimeTypes](../1460125-pmprintergetmimetypes.md)
- [PMPrinterGetName](../1459018-pmprintergetname.md)
- [PMPrinterGetOutputResolution](../1459076-pmprintergetoutputresolution.md)
- [PMPrinterSetOutputResolution](../1459931-pmprintersetoutputresolution.md)
- [PMPrinterGetPaperList](../1460088-pmprintergetpaperlist.md)
- [PMPrinterGetPrinterResolution](1805554-pmprintergetprinterresolution.md)
- [PMPrinterGetPrinterResolutionCount](../1462004-pmprintergetprinterresolutioncou.md)
- [PMPrinterGetIndexedPrinterResolution](../1464490-pmprintergetindexedprinterresolu.md)
- [PMPrinterGetState](../1462954-pmprintergetstate.md)
- [PMPrinterSetDefault](../1461118-pmprintersetdefault.md)
- [PMPrinterIsDefault](../1459030-pmprinterisdefault.md)
- [PMPrinterIsFavorite](../1462074-pmprinterisfavorite.md)
- [PMPrinterIsPostScriptCapable](../1464168-pmprinterispostscriptcapable.md)
- [PMPrinterIsPostScriptPrinter](../1462257-pmprinterispostscriptprinter.md)
- [PMPrinterIsRemote](../1461377-pmprinterisremote.md)
