Software for 1746 I/O

OC_SetForces Library of Routines 6–65
Publication 1747-6.5.3 June 1998
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE handle;
FORCEDATA forces;
int retcode;
/* Force low byte of input word 1 of slot 6 to 0x5A */
forces.SlotNum = 6;
forces.WordOffset = 1;
forces.IOType = FORCE_INPUTS;
forces.ForceMask = 0x00FF;
forces.ForceVal = 0x005A;
retcode = OC_SetForces( handle, &forces );
/* Must call OC_EnableForces() to actually apply the force data */
Name: Value: Description:
SUCCESS
0
I/O forces were configured successfully
ERR_OCACCESS
2
handle does not have access to scanner
ERR_OCPARAM
8
parameter contains invalid value
ERR_OCRESPONSE
10
scanner did not respond to request
ERR_OCSCANCFG
14
scanner has not been configured
ERR_OCSLOT
12
slot number is invalid