GETPHYSPAGESIZE

  #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.

Parameters

lpDevice

Points to a PDEVICE structure specifying the destination device.

lpDimensions

Points to a POINT structure that receives the physical page dimensions. The POINT structure has the following form:

typedef struct tagPOINT {

short x;

short y;

} POINT;

Return Value

The return value is positive if the escape is successful. Otherwise, it is negative.