GETSETPRINTORIENT

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

Parameters

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. The ORIENT structure has the following form:

typedef struct tagORIENT {

short Orientation;

short Reserved[4];

} ORIENT;

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