Glossary Item Box

ImageMan DLL Suite Version 8 Submit feedback on this topic   

ScanLowInitTwainJob

HTWAINJOB IMAPI ScanLowInitTwainJob (hWnd)

This low level function returns a handle to a TWAIN job.

 

Parameter

Type

Description

hWnd

HWND

Handle to a Window to be used as the parent for the scanner's dialog.

 

Return Value

The return value is a handle to a TWAIN Job handle to be used in subsequent low level scanner calls. If the function fails it will return NULL.

Comments

This function only needs to be called when using the low level scanning functions.

Example

#include  imtwain.h

HTWAINJOB hJob;

if( ScanIsTwainAvailable() ) {

hJob = ScanLowInitTwainJob( hWnd );

if( hJob ) {

// Ok to call other low level scanning functions

ScanLowCloseJob(hJob);

} else

// Scanning Failed!

}

 

 


Copyright 2008 Data Techniques, Inc. All Rights Reserved