
6–10 Library of Routines OC_DemandOutputScan
Publication 1747-6.5.3 June 1998
OC_DemandOutputScan OC_DemandOutputScan forces the scanner to immediately perform an output scan.
Syntax:
int OC_DemandOutputScan(HANDLE handle, int mode);
Parameters:
Description:
The scanner updates module outputs from the data in the output image. Use OC_WriteOutputImage to write
data to the output image.
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
int retcode;
retcode = OC_DemandOutputScan( Handle, OCWAIT );
Parameter: Description:
handle
Must be a valid handle returned from OC_OpenScanner
mode
If mode is:
OCWAIT OC_DemandOutputScan waits for the output scan to be
completed before returning to the caller.
OCNOWAITOC_DemandOutputScan returns immediately.
Name: Value: Description:
SUCCESS
0
demand output request was successful
ERR_OCACCESS
2
handle does not have access to scanner
ERR_OCRESPONSE
10
scanner did not respond to request
ERR_OCSCANCFG
14
scanner has not been configured
Comentarios a estos manuales