
Publication 1747-UM002A-US-P - June 2000
6-18 Library of Routines
OC_GetDeviceInfo
OC_GeDeviceInfo returns information about the scanner device.
Syntax:
int OC_GetDeviceInfo(HANDLE handle, OCDEVICEINFO *devinfo);
Description:
The OCDEVICEINFO is defined as:
{
WORD ScannerType;/* scanner device type */
WORD ScannerIrq;/* allocated interrupt */
DWORD ScannerMemory;/* dual-port memory access */
WORD ControlIo;/* PCIS control registers address */
DWORD SRAM_Size/* size of available SRAM in bytes */
} OCDEVICEINFO;
handle must be a valid handle returned from OC_OpenScanner.
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library.
Description:
HANDLE Handle;
OCDEVICEINFO devinfo;
/* display size of available SRAM */
OC_GetDeviceInfo(Handle, &devinfo);
printf(“SRAM Size is %ld bytes\n”, devinfo.SRAM_Size);
Name: Description:
SUCCESS The extended error information was read successfully.
ERR_OCACCESS
handle does not have access to scanner
Komentarze do niniejszej Instrukcji