Glossary Item Box

ImageMan DLL Suite Version 8 Submit feedback on this topic   

ScanLowSetScanDevice

void IMAPI ScanLowSetScanDevice (hJob, lpszName)

This low level function specifies the device to be used when scanning.

 

Parameter

Type

Description

hJob

HTWAINJOB

Handle to a TWAIN job returned from ScanLowInitTwainJob.

lpszName

LPSTR

Specifies the name of the device to be used when scanning

 

Return Value

This function does not return a value.

Comments

This function may optionally be called when using the low level scanning functions and must be called prior to calling ScanLowAcquirePages.

Example

#include  imtwain.h

HTWAINJOB hJob;

if( ScanIsTwainAvailable() ) {

hJob = ScanLowInitTwainJob( hWnd );

if( hJob ) {

// Set the scan area to 1,1 to 2.5,2.5

ScanLowSetScanDevice( hJob, "HP Deskscan" );

// Ok to call other low level scanning functions

ScanLowCloseJob(hJob);

} else

...

 

 


Copyright 2008 Data Techniques, Inc. All Rights Reserved