GETPHYSPAGESIZE

Syntax

short Escape(hDC, GETPHYSPAGESIZE,NULL, NULL, lpDimensions)

This escape retrieves the physical page size and copies it to the location pointed to by the lpDimensions parameter.

Parameter Type/Description  

hDC HDC Identifies the device context.  
lpDimensions LPPOINT Points to a POINT data structure that will receive the physical page dimensions. The x field of the POINT data structure receives the horizontal size in device units, and the y field receives the vertical size in device units.  

Return Value

The return value specifies the outcome of the escape. It is positive if the escape is successful. Otherwise, it is negative.