Oc_getscannerstatus, Oc_getscannerstatus -27, Example – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 87: Syntax, Parameters

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

Library of Routines 6-27

Example:

HANDLE

Handle;

OCINIT

scaninit;

int

retcode;

retcode = OC_GetScannerInitInfo( Handle, &scaninit );

if ( retcode == SUCCESS )

{

printf( ”Input Image Size = %d bytes \n”,

scaninit.InputImageSize );

printf( ”Output Image Size = %d bytes \n”,

scaninit.OutputImageSize );

printf( ”Host Retentive Data Size = %d bytes \n”,

scaninit.HostRetentiveDataSize );

}

else

/* handle error */

OC_GetScannerStatus

OC_GetScannerStatus reads the current status of the scanner.

Syntax:

int

OC_GetScannerStatus(HANDLE handle, BYTE

*scansts);

Parameters:

Parameter:

Description:

handle

Must be a valid handle returned from OC_OpenScanner

scansts

Status of the scanner

Advertising
This manual is related to the following products: