Rockwell-automation 1747-PCIS API Software - Open Controller Uživatelský manuál Strana 87

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 174
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 86
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
Zobrazit stránku 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 173 174

Komentáře k této Příručce

Žádné komentáře