typedef struct _LTWAINPROPERTIES
{
L_UINT uStructSize;
L_BOOL bPaperSource;
L_INT nMaxNumOfPages;
L_INT nDuplexScanning;
IMAGERESOLUTION ImageRes;
DATATRANSFER DataTransfer;
IMAGEEFFECTS ImageEff;
} LTWAINPROPERTIES, * pLTWAINPROPERTIES;
The LTWAINPROPERTIES structure provides information about the available TWAIN properties.
Size of the LTWAINPROPERTIES structure, in bytes, for versioning. Use the sizeof() operator to calculate the value.
Flag that indicates whether to use the Auto - Feed capability of the selected TWAIN source. Possible values are:
Value | Meaning |
---|---|
TRUE | Use the Auto - Feed capability. |
FALSE | Do not use the Auto - Feed capability. |
The maximum number of pages to get from the TWAIN source. (If the function updates this field to -1, it means that the number of pages is unlimited.)
Sets the type of duplex scanning. Possible values are (according to the TWAIN specification):
Value | Meaning |
---|---|
TWDX_NONE | No duplex used. |
TWDX_1PASSDUPLEX | 1 pass duplex. |
TWDX_2PASSDUPLEX | 2 pass duplex. |
A structure of type IMAGERESOLUTION that contains image resolution data for the TWAIN source.
A structure of type DATATRANSFER that contains data transfer information for the TWAIN source.
A structure of type IMAGEEFFECTS that contains image effects information for the TWAIN source.
pLTWAINPROPERTIES is a pointer to a LTWAINPROPERTIES structure. Where the function parameter type is pLTWAINPROPERTIES, you can declare an LTWAINPROPERTIES variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pLTWAINPROPERTIES variable is necessary only if your program requires a pointer.
LTWAINPROPERTIES is used with the LTwain::GetProperties and LTwain::SetProperties functions.