## Printer Device Driver

[prev][next][parent][TOC]

### get_printer_name

Scans the PM_SPOOLER_PRINTER section of the OS2.INI file, looking for a printer attached to either the queue or logical address pointed to by pszLogAddress, and then looks for the queue name if this is a queued DC.

The format of OS2.INI file is:

      Device_name;PORT;Driver.Type;Queue;;

Where:

device_name is the name in the Control Panel "Printer Connections" section
PORT is the serial/parallel port to which the device is connected, such as COM1
Driver.Type is the name of the driver (PLOTTERS in our case)
Type is the particular type of plotter, such as IBM6180
Queue is the name of the spooler queue associated with this device