DTWAIN_EnumPaperSizes

Top  Previous  Next

The DTWAIN_EnumPaperSizes function returns the available frame sizes values that are supported for the Source.

 

DTWAIN_BOOL DTWAIN_EnumPaperSizes (

DTWAIN_SOURCE

Source,

LPDTWAIN_ARRAY

lpPaperSizes );

 

Parameters

Source

Specifies an open TWAIN Source.

 

lpPaperSizes

A pointer to a DTWAIN_ARRAY that will be filled with the available frame sizes that are supported.

 

Return Values

If supported, TRUE is returned.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_EnumPaperSizes function takes the open Source Source, and returns to the DTWAIN_ARRAY pointed to by lpPaperSizes a list of the supported frame sizes.  The frame size is equivalent to various paper sizes such as US Letter, Legal, A4, etc. The DTWAIN_ARRAY stores LONG values.  A list of the possible values stored in the DTWAIN_ARRAY are found in Frame Size Constants

 

TWAIN State Transitions

The source must be opened in State 4

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Setting / Getting Frame Sizes