DTWAIN_GetPrinter
The DTWAIN_GetPrinter function gets the current Imprinter/Endorser.
DTWAIN_BOOL DTWAIN_GetPrinter (
Parameters Source An open TWAIN Source.
lpPrinter Address of a LONG variable that will store the current printer.
bGetCurrent Determines whether to get the current printer or default printer.
Return Values The return value is TRUE if successful. Otherwise FALSE is returned.
Comments The DTWAIN_GetPrinter function gets the current imprinter/endorser for the Source Source. The lpPrinter is the address of a LONG that will be filled in with the printer on successful return. If bGetCurrent is TRUE, the printer returned is the current printer. If bGetCurrent is FALSE, the default imprinter or endorser is returned. The value stored at the lpPrinter address on return can be any one of the following Imprinter / Endorser types
TWAIN State Transitions The Source must be in State 4. or higher
Prerequisite Function Call(s) DTWAIN Source Selection Function
See Also |