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.
GETSETPAPERBINS
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define GETSETPAPERBINS 29
short Control(lpDevice, GETSETPAPERBINS, lpInData, lpOutData)
LPPDEVICE lpDevice;
LPBININFO lpInData;
LPBININFO lpOutData;
The GETSETPAPERBINS escape retrieves the number of paper bins available on a
printer and sets the current paper bin.
Parameter Description
────────────────────────────────────────────────────────────────────────────
lpDevice Points to a PDEVICE structure specifying the destination device.
lpInData Points to a BININFO structure that specifies the new paper bin.
This parameter may be set to NULL.
lpOutData Points to a BININFO structure that receives information about the
current or previous paper bin and the number of bins available.
This parameter may be set to NULL.
Return Value
The return value is TRUE, if successful. Otherwise, it is FALSE.
Comments
If the lpInData parameter is NULL and the lpOutData parameter points to a
BININFO structure, the escape retrieves the number of bins and the number of
the current bin.
If both lpInData and lpOutData point to BININFO structures, the escape sets
the current bin to the number specified in the BinNumber member of the
structure pointed to by lpInData and retrieves the number of the previous
bin.
If lpInData points to a BININFO structure but lpOutData is NULL, the escape
sets the current bin to the number specified in the BinNumber member of the
structure pointed to by lpInData.
When setting the paper bin with GETSETPAPERBINS, the bin selected is set for
the current job by setting the bit 15 of the bin index. If this bit is not
set, the selected paper bin becomes the default for later print jobs, and
the current job's selection is unchanged. Setting bit 15 enables an
application to change bins in the middle of a printing job.
See Also
BININFO, PDEVICE
♦