
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-13
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
int retcode;
/* Use OC_SetForces() to configure forcing information first
*/
retcode = OC_EnableForces( Handle, FORCE_ENABLE );
OC_EnableSlot
OC_EnableSlot enables fine tuning of the I/O scanning process.
Syntax:
int OC_EnableSlot(HANDLE handle, int slotnum, int
state);
Parameters:
Name: Value: Description:
SUCCESS 0 forces were updated successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCNOFORCES 15 no forces installed, scanner cannot enable forces
ERR_OCPARAM 8 parameter contains invalid value
ERR_OCRESPONSE 10 scanner did not respond to request
ERR_OCSCANCFG 14 scanner has not been configured
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
slotnum Must contain a valid slot number.
state If
state is:
SLOT_ENABLE the module is released from its reset state and
is included in the I/O scan
SLOT_DISABLE the module is no longer included in the I/O scan
and any outputs remain at their last state
Comentarios a estos manuales