DTWAIN_SetAvailablePrinters

Top  Previous  Next

The DTWAIN_SetAvailablePrinters function sets all of the imprinter/endorser modes supported by a Source.

 

DTWAIN_BOOL DTWAIN_SetAvailablePrinters (

DTWAIN_SOURCE

Source,

LONG

Printers );

 

Parameters

Source

An open TWAIN Source.

 

Printers

A LONG that defines the printers to set.

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_SetAvailablePrinters function sets the supported imprinter/endorser printers of the Source Source. The Printers is a LONG that will store the Boolean OR of the printers that are to be set.  The Printers value must be one or more of the Imprinter/Endorser constants

 

These values are dependent solely on the support that the Source provides.  If the device does not support an imprinter or endorser, the value at the lpPrinters address will be 0.

 

TWAIN State Transitions

The Source must be in State 4. or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

DTWAIN_EnumTwainPrinters