Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
GETSETPRINTORIENT
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define GETSETPRINTORIENT 30 
short Control(lpDevice, GETSETPRINTORIENT, lpInData, NULL)
LPPDEVICE lpDevice;
LPORIENT lpInData;
 
The GETSETPRINTORIENT escape returns or sets the current paper orientation.
However, this escape is needed now only for backward compatibility with
earlier applications. The ExtDeviceMode function achieves the same results.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDevice   Points to a PDEVICE structure specifying the destination device.
 
lpInData   Points to an ORIENT structure that specifies the new paper
           orientation. If this parameter is NULL, the GETSETPRINTORIENT
           escape returns the current paper orientation.
 
Return Value
 
The return value specifies the current orientation, if the lpInData
parameter is NULL. Otherwise, it is the previous orientation, or -1 if the
escape failed.
 
Comments
 
The new orientation will take effect for the next device context created for
the device on this port.
 
See Also
 
ExtDeviceMode, ORIENT, PDEVICE