I am writing code in C # and using WIA to perform scan tasks. However, I'm having trouble capturing the devices that are shared on the network. My code captures all devices that are directly connected to 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 I can read the devices that are shared on the network?