short Escape(hdc, GETSETPAPERMETRICS, sizeof(RECT),lpNewPaper,lpPrevPaper)
The GETSETPAPERMETRICS printer escape sets the paper type according to the given paper metrics information. It also retrieves the paper metrics information for the current printer.
This escape is obsolete. Printer drivers written for Windows version 3.0 and later may not support this escape. Applications can use the DeviceCapabilities and ExtDeviceMode functions to achieve the same functionality.
This escape expects a RECT structure representing the imageable area of the physical page and assumes the origin is situated in the upper-left corner.
hdc
HDC Identifies the device context.
lpNewPaper
LPRECT Points to a RECT structure that defines the new imageable area.
lpPrevPaper
LPRECT Points to a RECT structure that receives the previous imageable area.
The return value is positive if the escape is successful. The value is zero if the escape is not implemented and negative if an error occurs.