Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DDRV
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
DESCRIPTION 'DDRV Description:AspectXY,LogPixelsX,LogPixelsY'
 
The DDRV statement in the printer driver's module-definition file names the
printer models supported by the printer driver, and specifies the aspect
ratio and logical pixels-per-inch values of the printer.
 
Every printer driver must provide a DDRV statement. Control Panel uses the
statement to display the name of the printer to the user and to choose
matching screen fonts for the printer.
 
Parameter    Description
────────────────────────────────────────────────────────────────────────────
 
Description  Specifies the name or names of the printer models supported by
             this driver. Although more than one name can be given, the
             names must not be separated by commas (,).
 
AspectXY     Specifies the aspect ratio for the printer. This parameter must
             be set to the same value as the driver's dpAspectXY member in
             the GDIINFO structure.
 
LogPixelsX   Specifies the horizontal pixels-per-inch for the printer. This
             parameter must be set to the same value as the driver's
             dpLogPixelsX member in the GDIINFO structure.
 
LogPixelsY   Specifies the vertical pixels-per-inch for the printer. This
             parameter must be set to the same value as the driver's
             dpLogPixelsX member in the GDIINFO structure.
 
Comments
 
The DDRV keyword must be capitalized. At least one character (typically a
space) must follow the DDRV keyword; Control Panel always ignores this first
character.
 
Control Panel uses the Description (all characters up to the colon)
parameter to create new settings for the [Devices] and [PrinterPorts]
sections in the WIN.INI file. The settings have the following form:
 
Description=Port[,Data]
 
Example
 
The following example shows a DDRV description for a printer driver
supporting a single model:
 
DESCRIPTION 'DDRV PCL / HP LaserJet:100,300,300'
 
The following example shows support for multiple printer models:
 
DESCRIPTION 'DDRV Printer 1/Printer2:100,300,300'
 
See Also
 
GDIINFO