GETPHYSPAGESIZE

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

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

Parameters

hdc

HDC Identifies the device context.

lpDimensions

LPPOINT Points to a POINT structure that will receive the physical page dimensions (in the current orientation). The x member of the POINT structure receives the horizontal size, in device units, and the y member receives the vertical size, in device units.

Return Value

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