Contents

PMPrinterGetDeviceURI

Obtains a copy of a printer's device URI.

Declaration

OSStatus PMPrinterGetDeviceURI (
   PMPrinter printer,
   CFURLRef *deviceURI
);

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 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.

See Also

Accessing Information About a Printer