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