下面是动态链接库的SDK,请教各位大侠,这个动态链接库是不是专门为VC写的?只能用VC来调用?是也好,不是也好,能不能给一个VB或VC调用的简单例子?Avision Scanner Interface Protocol (Win32 DLL and Mac share library) 11/99
@@ Introduction
This document decribes the Interface Protocol of Avision DLL function call.
Win32 DLL and Mac share library use the same function call.
In this document you can find:
@ Structure and the member description.
@ The Function Description of the DLL.
@ How to call the export function of the DLL.
@ The calling sequences of DLL.@@ Structure Description1> ScannerAbility
typedef struct tagScannerAbility{
char Model[8];
char FirmwareVersion[4];
WORD OpticalRes;
WORD MaxXRes;
WORD MaxYRes;
BYTE DataWidth;
BYTE Reserved1;
BYTE ImageType;
BYTE ScanMethod;
WORD FlatbedMaxWidth;
WORD FlatbedMaxLength;
WORD ADFMaxWidth;
WORD ADFMaxLength;
BYTE Reserved2;
BYTE HalftoneNum;
BYTE HighShadow;
BYTE Invert;
WORD TransparencyMaxWidth;
WORD TransparencyMaxLength;
BYTE Reserved3[6];
} SCANNERABILITY;typedef SCANNERABILITY FAR* LPSCANNERABILITY@ Member Description of struct SCANNERABILITYMember Sizes DescriptionModel 8 Bytes Model Name. ex: AV100C
FirmwareVersion 4 Bytes Firmware Version. ex: 1.10
OpticalRes WORD the Max Optical resolution of this scanner
ex: 300 dpi
MaxXRes WORD the Max resolution of horizontal direction
ex: 300 dpi
MaxYRes WORD the Max resolution of vertical direction
ex: 600 dpi
DataWidth BYTE output image pixel depth of this scanner
bit control list below:
bit bits per pixel
7 1
6 3
5 4
4 6
3 8
2 12
1 18
0 24
* For DataWidth more than 24 bits, please refer to ScannerAbilityEx
HasExtendAbility BYTE 1: Support GetScannerAbilityEx Function
0: No
* If the driver can support GetScannerAbilityEx,
it is better tocall GetScannerAbilityEx to get
full description of scanner ability.
ImageType BYTE output image type of this scanner
bit control list below:
bit image type
7 Black/White
6 3-pass Color
5 1-pass Color
others reserved
ScanMethod BYTE scan method of this scanner
bit control list below:
bit scan method
7 flatbed
6 roller type ADF
5 flatbed with ADF
4 roller without ADF
(scan single page only)
others reserved
FlatbedMaxWidth WORD Max frame width of flatbed type scanner
Max width = 300 * inches
FlatbedMaxLength WORD Max frame length of flatbed type scanner
Max length = 300 * inches
ADFMaxWidth WORD Max limited width of ADF type scanner
Max width = 300 * inches
ADFMaxLength WORD Max limited length of ADF type scanner
Max length = 300 * inches
Reserved2 BYTE reserved
HalftoneNum BYTE the number of build-in halftone pattern of
this scanner
HighShadow BYTE 0 - scanner can not support Highlight/Shadow
1 - scanner can support Highlight/Shadow
Invert BYTE 0 - scanner can not support Invert
1 - scanner can support Invert
TransparencyMaxWidth WORD Max limited width of XPA type scanner
Max width = 300 * inches
TransparencyMaxLength WORD Max limited length of XPA type scanner
Max length = 300 * inches
Reserved3 6 Bytes reserved
@@ Export Function Description of Device's DLL1> Initialize DriverPrototype : BOOL WINAPI InitializeDriver(VOID);Description : This function use to initializes/allocate the DLL internal value.
This function must be called once before all export function is
accessed.
This function can not be called more than once.Return : TRUE: Function success
FALSE: Function failParameters : None.
@@ Introduction
This document decribes the Interface Protocol of Avision DLL function call.
Win32 DLL and Mac share library use the same function call.
In this document you can find:
@ Structure and the member description.
@ The Function Description of the DLL.
@ How to call the export function of the DLL.
@ The calling sequences of DLL.@@ Structure Description1> ScannerAbility
typedef struct tagScannerAbility{
char Model[8];
char FirmwareVersion[4];
WORD OpticalRes;
WORD MaxXRes;
WORD MaxYRes;
BYTE DataWidth;
BYTE Reserved1;
BYTE ImageType;
BYTE ScanMethod;
WORD FlatbedMaxWidth;
WORD FlatbedMaxLength;
WORD ADFMaxWidth;
WORD ADFMaxLength;
BYTE Reserved2;
BYTE HalftoneNum;
BYTE HighShadow;
BYTE Invert;
WORD TransparencyMaxWidth;
WORD TransparencyMaxLength;
BYTE Reserved3[6];
} SCANNERABILITY;typedef SCANNERABILITY FAR* LPSCANNERABILITY@ Member Description of struct SCANNERABILITYMember Sizes DescriptionModel 8 Bytes Model Name. ex: AV100C
FirmwareVersion 4 Bytes Firmware Version. ex: 1.10
OpticalRes WORD the Max Optical resolution of this scanner
ex: 300 dpi
MaxXRes WORD the Max resolution of horizontal direction
ex: 300 dpi
MaxYRes WORD the Max resolution of vertical direction
ex: 600 dpi
DataWidth BYTE output image pixel depth of this scanner
bit control list below:
bit bits per pixel
7 1
6 3
5 4
4 6
3 8
2 12
1 18
0 24
* For DataWidth more than 24 bits, please refer to ScannerAbilityEx
HasExtendAbility BYTE 1: Support GetScannerAbilityEx Function
0: No
* If the driver can support GetScannerAbilityEx,
it is better tocall GetScannerAbilityEx to get
full description of scanner ability.
ImageType BYTE output image type of this scanner
bit control list below:
bit image type
7 Black/White
6 3-pass Color
5 1-pass Color
others reserved
ScanMethod BYTE scan method of this scanner
bit control list below:
bit scan method
7 flatbed
6 roller type ADF
5 flatbed with ADF
4 roller without ADF
(scan single page only)
others reserved
FlatbedMaxWidth WORD Max frame width of flatbed type scanner
Max width = 300 * inches
FlatbedMaxLength WORD Max frame length of flatbed type scanner
Max length = 300 * inches
ADFMaxWidth WORD Max limited width of ADF type scanner
Max width = 300 * inches
ADFMaxLength WORD Max limited length of ADF type scanner
Max length = 300 * inches
Reserved2 BYTE reserved
HalftoneNum BYTE the number of build-in halftone pattern of
this scanner
HighShadow BYTE 0 - scanner can not support Highlight/Shadow
1 - scanner can support Highlight/Shadow
Invert BYTE 0 - scanner can not support Invert
1 - scanner can support Invert
TransparencyMaxWidth WORD Max limited width of XPA type scanner
Max width = 300 * inches
TransparencyMaxLength WORD Max limited length of XPA type scanner
Max length = 300 * inches
Reserved3 6 Bytes reserved
@@ Export Function Description of Device's DLL1> Initialize DriverPrototype : BOOL WINAPI InitializeDriver(VOID);Description : This function use to initializes/allocate the DLL internal value.
This function must be called once before all export function is
accessed.
This function can not be called more than once.Return : TRUE: Function success
FALSE: Function failParameters : None.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货