The following information is provided as is, and the authors take no responsibility for the correctness.

Table of Contents

PASSTHROUGH

The PASSTHROUGH printer escape function sends data directly to a printer driver. To perform this operation, call the ExtEscape function with the following parameters.

#define PASSTHROUGH  19

int ExtEscape( 
  hdc,                 // handle to DC (HDC)
  PASSTHROUGH,         // nEscape parameter of ExtEscape
  cbInput,             // bytes in input buffer
  lpszInData,          // data to send to printer
  0,                   // cbOutput parameter of ExtEscape
  NULL                 // lpszOutData parameter of ExtEscape
);

Parameters

hdc

Handle to the printer device context.

cbInput

Specifies the size, in bytes, of the data pointed to by the lpszInData parameter.

lpszInData

Pointer to a buffer containing the data to send to the printer. The first word contains the number of bytes of input data. The remaining bytes of the buffer contain the data itself.

Return Values

If the function succeeds, the return value is greater than zero. If the function fails or is not supported, the return value is less than or equal to zero.

Windows NT/2000/XP: To get extended error information, call GetLastError.

Remarks

The PASSTHROUGH printer escape function is supported by PostScript drivers in GDI-centric mode or compatibility mode. It is not supported by PostScript drivers in PostScript-centric mode. Drivers in PostScript-centric mode can use the POSTSCRIPT_PASSTHROUGH escape function. To set a PostScript driver’s mode, call the POSTSCRIPT_IDENTIFY escape function.

For PASSTHROUGH data sent by EPSPRINTING or PostScript-centric applications, the PostScript driver will not make any modifications. For PASSTHROUGH data sent by other applications, if the PostScript driver is using BCP (Binary Communication Protocol) or TBCP (Tagged Binary Communication Protocol) output protocol, it will do the appropriate BCP or TBCP quoting on special characters as described in “Adobe Serial and Parallel Communications Protocols Specification.” This means that the application should send either ASCII or pure binary PASSTHROUGH data.

Requirements

  • Windows NT/2000/XP/Vista: Included in Windows NT 3.1 and later.
  • Windows 95/98/Me: Included in Windows 95 and later.
 
winspool/printer_escape_functions/passthrough.txt · Last modified: 2007/11/26 13:34 by christoph
 

All text is available under the terms of the GNU Free Documentation License (see Copyrights for details). Disclaimers

Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki