#define ENUMPAPERBINS 31 |
short Control(lpDevice, ENUMPAPERBINS, lpInData, lpOutData) | |||
LPPDEVICE lpDevice; | |||
LPINT lpInData; | |||
LPINT lpOutData; |
The ENUMPAPERBINS escape retrieves attribute information about a specified number of paper bins. The GETSETPAPERBINS escape retrieves the number of bins available on a printer.
lpDevice
Points to a PDEVICE structure specifying the destination device.
lpInData
Points to a 16-bit variable that specifies the number of bins for which information is to be retrieved.
lpOutData
Points to a BINNAMES structure to which information about the paper bins is copied. The size of the structure depends on the number of bins for which information was requested. The BINNAMES structure has the following form:
typedef struct tagBINNAMES {
short BinList[CBINMAX];
char PaperNames[CBINMAX][CCHBINNAME]
} BINNAMES;
It is 1 if the escape is successful. Otherwise, it is 0 if the escape is not successful or not implemented.