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!)?
– Vinícius Gobbo A. de Oliveira
I believe this can help you: http://www.codeproject.com/Articles/2939/Network-Shares-and-UNC-paths
– Vinícius Gobbo A. de Oliveira