WIA不会退还所有设备 [英] WIA not returning all the devices

查看:65
本文介绍了WIA不会退还所有设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用C#开发远程图像扫描服务.当我调用以下函数时,它仅返回2个WIA设备(扫描仪).但是我的系统(xp)安装了4个WIA设备,包括2个无线扫描仪(一个Brother和一个Samsung scx 3200w无线扫描仪).当我尝试使用其他应用程序(例如photoshop)获取图像时,它会显示所有4种设备.请帮助-谢谢

i am trying to develop a remote image scanning service in c#. when i call the following function, it returns only 2 WIA devices (scanners). But my system (xp) is having 4 WIA devices installed, including 2 wireless scanners (one Brother and one Samsung scx 3200w wireless scanners). when i try to acquire image using other app like photoshop, it shows all 4 devices. pl help- Thanks

public static List<string> GetDevices()
{
    List<string> devices = new List<string>();
    WIA.DeviceManager manager = new WIA.DeviceManager() ;

    foreach (WIA.DeviceInfo info in manager.DeviceInfos)
    {
        devices.Add(info.DeviceID);
    }

    return devices;
}

推荐答案

首先,为了使WIA可以看到某个设备,它需要安装WIA兼容的驱动程序.如果没有,WIA将看不到它.

其次,Photoshop不使用WIA.
First, in order for a devie to be seen by WIA, it needs to have WIA compatible drivers installed. If not, WIA won''t see it.

Second, Photoshop doesn''t use WIA.


这篇关于WIA不会退还所有设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆