Oc_initscanner, Return value: considerations, Example – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual
Page 99: Syntax, Parameters
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-39
WORD
OCHardwareRevision; /* Hardware revision */
} OCVERSIONINFO;
The Windows NT version uses the above structure with these
additional members:
WORD
OCDriverSeries; / * Device driver series */
WORD
OCDriverRevision / * Device driver
series revision */
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE
Handle;
OCVERSIONINFO
verinfo;
int
retcode;
retcode = OC_GetVersionInfo( Handle, &verinfo );
OC_InitScanner
This function initializes the shared memory interface between the host
and scanner and this function configures the shared memory
partitioning.
Syntax:
int
OC_InitScanner(HANDLE handle, OCINIT *scaninit);
Parameters:
Name:
Value:
Description:
SUCCESS
0
version information was read successfully
ERR_OCACCESS
2
handle
does not have access to scanner
ERR_OCINIT
5
scanner has not been initialized, see OC_InitScanner
Parameter:
Description:
handle
Must be a valid handle returned from OC_OpenScanner
scaninit
Points to the structure that contains the initialization information
passed from the application