PMPrinterGetCommInfo(_:_:_:)
Obtains information about the communication channel for a printer.
Declaration
func PMPrinterGetCommInfo(_ printer: PMPrinter, _ supportsControlCharRangeP: UnsafeMutablePointer<DarwinBoolean>?, _ supportsEightBitP: UnsafeMutablePointer<DarwinBoolean>?) -> OSStatusParameters
- printer:
The printer whose information you want to obtain.
- supportsTransparentP:
A pointer to your Boolean variable. On return,
trueindicates that the communication channel to the specified printer supports bytes in the range 0x0–0x1F; otherwise,false. - supportsEightBitP:
A pointer to your Boolean variable. On return,
trueindicates that the communication channel to the specified printer supports bytes in the range 0x80–0xFF; otherwise,false.
Return Value
A result code. See Result Codes.
Discussion
This function is typically relevant only to PostScript printers. All PostScript printers, regardless of what communications channel is used to send data to them, support data in the range 0x20–0x7F. Many communications channels can support data outside this range. You can use this function to determine whether the communications channel to the specified printer also supports bytes in the ranges 0x0–0x1F and 0x80–0xFF.
See Also
Accessing Information About a Printer
PMPrinterCopyDescriptionURL(_:_:_:)PMPrinterCopyDeviceURI(_:_:)PMPrinterCopyHostName(_:_:)PMPrinterCopyPresets(_:_:)PMPrinterGetDriverCreator(_:_:)PMPrinterGetID(_:)PMPrinterGetLocation(_:)PMPrinterGetMakeAndModelName(_:_:)PMPrinterGetMimeTypes(_:_:_:)PMPrinterGetName(_:)PMPrinterGetOutputResolution(_:_:_:)PMPrinterSetOutputResolution(_:_:_:)PMPrinterGetPaperList(_:_:)PMPrinterGetPrinterResolutionCount(_:_:)PMPrinterGetIndexedPrinterResolution(_:_:_:)PMPrinterGetState(_:_:)PMPrinterSetDefault(_:)PMPrinterIsDefault(_:)PMPrinterIsFavorite(_:)PMPrinterIsPostScriptCapable(_:)PMPrinterIsPostScriptPrinter(_:_:)PMPrinterIsRemote(_:_:)