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

  • 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 98
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-39
WORD OCHardwareRevision; /* Hardware revision */
} OCVERSIONINFO;
The Windows NT version uses the above structure with these
additional members:
WORD OCDriverSeries; / * Device driver series */
WORD OCDriverRevision / * Device driver
series revision */
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
OCVERSIONINFO verinfo;
int retcode;
retcode = OC_GetVersionInfo( Handle, &verinfo );
OC_InitScanner
This function initializes the shared memory interface between the host
and scanner and this function configures the shared memory
partitioning.
Syntax:
int OC_InitScanner(HANDLE handle, OCINIT *scaninit);
Parameters:
Name: Value: Description:
SUCCESS 0 version information was read successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCINIT 5 scanner has not been initialized, see OC_InitScanner
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
scaninit Points to the structure that contains the initialization information
passed from the application
Zobrazit stránku 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 173 174

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

Žádné komentáře