Rockwell-automation 1747-PCINT API Software for 1746 I/O Uživatelský manuál Strana 102

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 155
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 101
OC_OpenScanner Library of Routines 6–48
Publication 1747-6.5.3 June 1998
OC_OpenScanner OC_OpenScanner acquires access to the scanner device and sets a unique ID that
the application uses to access the scanner in subsequent functions.
Syntax:
DOS int OC_OpenScanner(HANDLE *handle, 0, 0);
NT int OC_OpenScanner(HANDLE *handle);
Important: The two argument values of zero are ignored by the DOS API
function.They are a carryover from the Open Controller API.
Description:
This function must be called before any of the other scanner access functions can be used.
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
int retcode;
retcode = OC_OpenScanner( &Handle, 0, 0 );
!
ATTENTION: After OC_OpenScanner has been called, OC_CloseScanner must be called before
exiting the application.
Name: Value: Description:
SUCCESS
0
scanner was opened successfully
ERR_OCOPEN
1
scanner is already open
ERR_OCMEM
3
shared memory not found
Zobrazit stránku 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 154 155

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

Žádné komentáře