首页 > 代码库 > 安装WIA组件

安装WIA组件

下载地址:

http://pan.baidu.com/s/1bnGU5Nx

安装方法:

将下载后的WIAAutSDK.zip解压,复制wiaaut.dll到C:\Windows\System32,注册组件"regsvr32 wiaaut.dll"

测试代码:

save as wia-installing-test.vbsOn Error Resume Next    Set wia = CreateObject("WIA.ImageFile")    If Err.Number = 0 Then        MsgBox "wia installing ok",, "wia installing test"        Set wia = Nothing    Else        MsgBox "wia installing failed",, "wia installing test"    End If

ps:一般来讲只有ghost xp系统会缺少这个组件。

 

WIA Property Constant Definitions

(@http://msdn.microsoft.com/en-us/library/windows/desktop/ms630202(v=vs.85).aspx):

const DeviceID = 2const Manufacturer = 3const Description = 4const Type = 5const Port = 6const Name = 7const Server = 8const RemoteDevID = 9const UIClassID = 10const FirmwareVersion = 1026const ConnectStatus = 1027const DeviceTime = 1028const PicturesTaken = 2050const PicturesRemaining = 2051const ExposureMode = 2052const ExposureCompensation = 2053const ExposureTime = 2054const FNumber = 2055const FlashMode = 2056const FocusMode = 2057const FocusManualDist = 2058const ZoomPosition = 2059const PanPosition = 2060const TiltPostion = 2061const TimerMode = 2062const TimerValue = http://www.mamicode.com/2063const PowerMode = 2064const BatteryStatus = 2065const Dimension = 2070const HorizontalBedSize = 3074const VerticalBedSize = 3075const HorizontalSheetFeedSize = 3076const VerticalSheetFeedSize = 3077const SheetFeederRegistration = 3078const HorizontalBedRegistration = 3079const VerticalBedRegistraion = 3080const PlatenColor = 3081const PadColor = 3082const FilterSelect = 3083const DitherSelect = 3084const DitherPatternData = http://www.mamicode.com/3085const DocumentHandlingCapabilities = 3086const DocumentHandlingStatus = 3087const DocumentHandlingSelect = 3088const DocumentHandlingCapacity = 3089const HorizontalOpticalResolution = 3090const VerticalOpticalResolution = 3091const EndorserCharacters = 3092const EndorserString = 3093const ScanAheadPages = 3094const MaxScanTime = 3095const Pages = 3096const PageSize = 3097const PageWidth = 3098const PageHeight = 3099const Preview = 3100const TransparencyAdapter = 3101const TransparecnyAdapterSelect = 3102const ItemName = 4098const FullItemName = 4099const ItemTimeStamp = 4100const ItemFlags = 4101const AccessRights = 4102const DataType = 4103const BitsPerPixel = 4104const PreferredFormat = 4105const Format = 4106const Compression = 4107const MediaType = 4108const ChannelsPerPixel = 4109const BitsPerChannel = 4110const Planar = 4111const PixelsPerLine = 4112const BytesPerLine = 4113const NumberOfLines = 4114const GammaCurves = 4115const ItemSize = 4116const ColorProfiles = 4117const BufferSize = 4118const RegionType = 4119const ColorProfileName = 4120const ApplicationAppliesColorMapping = 4121const StreamCompatibilityID = 4122const ThumbData = http://www.mamicode.com/5122const ThumbWidth = 5123const ThumbHeight = 5124const AudioAvailable = 5125const AudioFormat = 5126const AudioData = http://www.mamicode.com/5127const PicturesPerRow = 5128const SequenceNumber = 5129const TimeDelay = 5130const CurrentIntent = 6146const HorizontalResolution = 6147const VerticalResolution = 6148const HorizontalStartPostion = 6149const VerticalStartPosition = 6150const HorizontalExtent = 6151const VerticalExtent = 6152const PhotometricInterpretation = 6153const Brightness = 6154const Contrast = 6155const Orientation = 6156const Rotation = 6157const Mirror = 6158const Threshold = 6159const Invert= 6160const LampWarmUpTime = 6161

 

安装WIA组件