The following information is provided as is, and the authors take no responsibility for the correctness.
The following printer escape functions are used with the Escape or ExtEscape functions.
| ID | Printer escape function | Driver | Description |
|---|---|---|---|
| 1 | NEWFRAME | ||
| 2 | ABORTDOC | ||
| 3 | NEXTBAND | ||
| 4 | SETCOLORTABLE | ||
| 5 | GETCOLORTABLE | ||
| 6 | FLUSHOUTPUT | ||
| 7 | DRAFTMODE | ||
| 8 | QUERYESCSUPPORT | ||
| 9 | SETABORTPROC | ||
| 10 | STARTDOC | ||
| 11 | ENDDOC | ||
| 12 | GETPHYSPAGESIZE | ||
| 13 | GETPRINTINGOFFSET | ||
| 14 | GETSCALINGFACTOR | ||
| 15 | MFCOMMENT | ||
| 16 | GETPENWIDTH | ||
| 17 | SETCOPYCOUNT | ||
| 18 | SELECTPAPERSOURCE | ||
| 19 | DEVICEDATA | ||
| 19 | PASSTHROUGH | Sends data directly to a printer driver in compatibility mode or GDI-centric mode. | |
| 20 | GETTECHNOLOGY | For non-XPSDrv printers: Reports on whether or not the driver is a Postscript driver. For XPSDrv printers: Reports on whether or not the driver is the Microsoft XPS Document Converter (MXDC). If it is, the escape returns the zero-terminated string “http://schemas.microsoft.com/xps/2005/06“. | |
| 25 | DRAWPATTERNRECT | Create a white, grayscale, or solid black rectangle by using the pattern and rule capabilities of Page Control Language. A grayscale is a gray pattern that contains a specific mixture of black and white pixels. | |
| 33 | EPSPRINTING | Indicate the start or end of EPS printing. The graphics device interface (GDI) intercepts this escape and translates it to a DDI call other than DrvEscape. The printer driver does not receive this escape. |
|
| 37 | POSTSCRIPT_DATA | Send data directly to a printer driver. This escape is identical to the PASSTHROUGH escape except that PostScript printer drivers support this escape in Windows NT 4.0 compatibility mode only. | |
| 38 | POSTSCRIPT_IGNORE | Suppress output. Only PostScript printer drivers in Windows NT 4.0 compatibility mode or in GDI-centric mode support this escape. PostScript printer drivers in PostScript-centric mode do not support this escape. |
|
| 42 | GETDEVICEUNITS | ||
| - | |||
| 256 | GETEXTENDEDTEXTMETRICS | ||
| 257 | GETEXTENTTABLE | ||
| 258 | GETPAIRKERNTABLE | ||
| 259 | GETTRACKKERNTABLE | ||
| 512 | EXTTEXTOUT | ||
| 513 | GETFACENAME | ||
| 514 | DOWNLOADFACE | ||
| 768 | ENABLERELATIVEWIDTHS | ||
| 769 | ENABLEPAIRKERNING | ||
| 770 | SETKERNTRACK | ||
| 771 | SETALLJUSTVALUES | ||
| 772 | SETCHARSET | ||
| - | |||
| 2048 | STRETCHBLT | ||
| 2049 | METAFILE_DRIVER | ||
| - | |||
| 3072 | GETSETSCREENPARAMS | ||
| 3073 | QUERYDIBSUPPORT | ||
| - | |||
| 4096 | BEGIN_PATH | Open a path. | |
| 4097 | CLIP_TO_PATH | Define a clip region that is bounded by a path. | |
| 4098 | END_PATH | End a path. | |
| 4099 | EXT_DEVICE_CAPS | ||
| 4100 | RESTORE_CTM | ||
| 4101 | SAVE_CTM | ||
| 4102 | SET_ARC_DIRECTION | ||
| 4103 | SET_BACKGROUND_COLOR | ||
| 4104 | SET_POLY_MODE | ||
| 4105 | SET_SCREEN_ANGLE | ||
| 4106 | SET_SPREAD | ||
| 4107 | TRANSFORM_CTM | ||
| 4108 | SET_CLIP_BOX | ||
| 4109 | SET_BOUNDS | ||
| 4110 | SET_MIRROR_MODE | ||
| 4110 | OPENCHANNEL | The OPENCHANNEL escape will prevent the PostScript language printer driver from downloading a PostScript language header to the printer. | |
| 4111 | DOWNLOADHEADER | Download all of the procsets (that is, sets of PostScript procedures). | |
| 4112 | CLOSECHANNEL | ||
| 4115 | POSTSCRIPT_PASSTHROUGH | Send data directly to a PostScript printer driver in Windows NT 4.0 compatibility mode or PostScript-centric mode. PostScript printer drivers in GDI-centric mode do not support this escape. | |
| 4116 | ENCAPSULATED_POSTSCRIPT | Windows 2000/XP: Send Encapsulated PostScript (EPS) data to the printer. | |
| 4117 | POSTSCRIPT_IDENTIFY | NT5 pscript | Windows 2000/XP: Sets a PostScript driver to GDI-centric or PostScript-centric mode. |
| 4118 | POSTSCRIPT_INJECTION | NT5 pscript | Windows 2000/XP: Inserts a block of raw data in a PostScript job stream. |
| 4119 | CHECKJPEGFORMAT | Windows 2000/XP: Checks whether the printer supports a JPEG image. This escape produces a call to the DrvQueryDeviceSupport function. |
|
| 4120 | CHECKPNGFORMAT | Windows 2000/XP: Checks whether the printer supports a PNG image. This escape produces a call to the DrvQueryDeviceSupport function. |
|
| 4121 | GET_PS_FEATURESETTING | NT5 pscript | Windows 2000/XP: Gets information on a specified feature setting for a PostScript driver. |
| 4568 | SPCLPASSTHROUGH2 | NT5 pscript | Windows 2000/XP: Allows applications to include private procedures and other resources at the document level-save context. |
| MXDC_ESCAPE | Windows Vista: Enables applications to write documents to a file or to a printer in XML Paper Specificaton (XPS) format by means of the Microsoft XPS Document Converter (MSDC). | ||