INFO: Printer Escapes Under Windows 95ID: Q125692
|
Printer escapes are used to access special printer device features and have
been used widely in Windows version 3.x. With Windows 95, Microsoft is
encouraging application developers to move away from these escapes by
providing GDI functionality to replace them.
For example, a Win32-based application should not call the NEXTBAND and
BANDINFO escapes. Banding is no longer needed in Windows 95. Most of these
escapes, however, are still provided for 16-bit-based applications for
backwards compatibility. The only recommended escapes for 32-bit,
Windows 95-based applications are the QUERYESCSUPPORT and PASSTHROUGH
escapes.
Applications written for Windows version 3.x can use the QUERYESCSUPPORT and the PASSTHROUGH escapes, as well as the following 10 escapes. It is important to note that these escapes are only supported for backwards compatibility. All new Windows 95-based applications should use Win32 API that replaces these escapes:
ABORTDOC
ENDDOC
GETPHYSPAGESIZE
GETPRINTINGOFFSET
GETSCALINGFACTOR
NEWFRAME
NEXTBAND
SETABORTPROC
SETCOPYCOUNT
STARTDOC
The following functions should always be used in place of a printer escape:
Function Printer Escape Replaced
----------------------------------------
AbortDoc ABORTDOC
EndDoc ENDDOC
EndPage NEWFRAME
SetAbortProc SETABORTPROC
StartDoc STARTDOC
Windows 95 provides six new indexes for the GetDeviceCaps function that replace some additional printer escapes:
Index for GetDeviceCaps Printer Escape Replaced
--------------------------------------------------------
PHYSICALWIDTH GETPHYSPAGESIZE
PHYSICALHEIGHT GETPHYSPAGESIZE
PHYSICALOFFSETX GETPRINTINGOFFSET
PHYSICALOFFSETY GETPRINTINGOFFSET
SCALINGFACTORX GETSCALINGFACTOR
SCALINGFACTORY GETSCALINGFACTOR
Additional query words: 4.00
Keywords : kbSDKWin32 kbWinOS95 kbDSupport
Version : winnt:
Platform : winnt
Issue type : kbinfo
Last Reviewed: July 7, 1999