Oc_closescanner -4 – Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual
Page 58

6–4
Library of Routines
OC_CloseScanner
Publication 1747-6.5.3 June 1998
OC_CloseScanner
This function must always be called before exiting the application.
Syntax:
int
OC_CloseScanner(HANDLE handle);
Parameters:
Description:
This function releases control of the scanner device, releases the interrupt assigned by OC_OpenScanner,
and disables the segment address assignment.
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE
Handle;
int
retcode;
retcode = OC_CloseScanner( Handle );
Parameter:
Description:
handle
Must be a valid handle returned from OC_OpenScanner
!
ATTENTION:
The system might become unstable if you don’t call OC_CloseScanner before exiting
the application.
Name:
Value:
Description:
SUCCESS
0
scanner was closed successfully
ERR_OCACCESS
2
handle
does not have access to the scanner