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.
GETPHYSPAGESIZE
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define GETPHYSPAGESIZE 12 
short Control(lpDevice, GETPHYSPAGESIZE, NULL, lpDimensions)
LPPDEVICE lpDevice;
LPPOINT lpDimensions;
 
The GETPHYSPAGESIZE escape retrieves the physical page size in device units
(that is, how many pixels wide by how many scan lines high) and copies it to
the location pointed to by the lpDimensions parameter.
 
Parameter     Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDevice      Points to a PDEVICE structure specifying the destination
              device.
 
lpDimensions  Points to a POINT structure that receives the physical page
              dimensions.
 
Return Value
 
The return value is positive if the escape is successful. Otherwise, it is
negative.
 
See Also
 
PDEVICE, POINT