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.
ENABLEDUPLEX
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define ENABLEDUPLEX 28 
short Control(lpDevice, ENABLEDUPLEX, lpInData, NULL)
LPPDEVICE lpDevice;
LPWORD lpInData;
 
The ENABLEDUPLEX escape enables the duplex printing capability of a printer.
A device that has duplex printing capability is able to print on both sides
of the output medium.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDevice   Points to a PDEVICE structure specifying the destination device.
 
lpInData   Points to a 16-bit variable that contains one of the following
           values.
 
           Value  Meaning
           ─────────────────────────────────────────────────────────────────
           0      Simplex
 
           1      Duplex with vertical binding
 
           2      Duplex with horizontal binding
 
Return Value
 
The return value is 1 if the escape is successful. Otherwise, it is 0.
 
Comments
 
An application should use the QUERYESCSUPPORT escape to determine whether or
not an output device is capable of creating duplex output. If
QUERYESCSUPPORT returns a nonzero value, the application should send the
ENABLEDUPLEX escape even if simplex printing is desired. This guarantees the
overriding of any values set in the driver-specific dialog. If duplex
printing is enabled and an uneven number of NEWFRAME escapes is sent to the
driver prior to the ENDDOC escape, the driver will add one page eject before
ending the print job.
 
See Also
 
ENDDOC, NEWFRAME, QUERYESCSUPPORT, PDEVICE
 
 
                                      ♦