WIA - Load network devices

Asked

Viewed 63 times

2

I’m writing a C# code and using WIA to perform scanning tasks. However, I am having trouble capturing devices that are shared on the network. My code captures all devices that are connected directly on the machine.

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;
}

Does anyone know how to read devices that are shared on the network?

  • You mean those devices that appear in "My Network Locations" (I forgot the current name!)?

  • I believe this can help you: http://www.codeproject.com/Articles/2939/Network-Shares-and-UNC-paths

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.