
Publication 1747-UM002A-US-P - June 2000
6-10 Library of Routines
BYTE Rack1Size;/* number of slots in Rack 1 */
BYTE Rack2Size;/* number of slots in Rack 2 */
BYTE Rack3Size;/* number of slots in Rack 3 */
OCSLOTCFG SlotCfg[OCMAXSLOT];/* configuration for each
slot */
} OCIOCFG;
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
OCIOCFG iocfg;
int retcode;
/* Either OC_CreateIOConfiguration()
or
OC_GetIOConfiguration() were */
/* called previously to fill in ’iocfg’ structure */
retcode = OC_DownloadIOConfiguration( Handle, &iocfg );
OC_EnableEOSNotify
OC_EnableEOSNotify controls whether end-of-scan notification
messages are generated by the scanner.
Syntax:
int OC_EnableEOSNotify(HANDLE handle, int mode);
Name: Value: Description:
SUCCESS 0 I/O configuration was downloaded successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCINIT 5 scanner has not been initialized, see OC_InitScanner
ERR_OCOUTOFMEM 17 unable to allocate memory for configuration data
ERR_OCRESPONSE 10 scanner did not respond to request
Komentarze do niniejszej Instrukcji