title: WIA.DeviceManager.DeviceInfos.Count = 0. Why?
body: <p>I'm trying to identify the scanners attached to the computer. One of the possible solutions is to use WIA (Windows Image Acquisition Automation Library).</p>
  
  <p>These were my actions so far:</p>
  
  <ul>
  <li>Download wiaaut.dll</li>
  <li>Copy it to system32</li>
  <li>Register it with "regsvr32 wiaaut.dll" (successfully)</li>
  <li>Add reference to my project in Visual Studio.NET</li>
  <li>Check that the Windows Image Acquisition (WIA) service is running</li>
  </ul>
  
  <p>Next, I add and debug the following code:</p>
  
  <pre><code>WIA.DeviceManager manager = new WIA.DeviceManagerClass();
  string deviceName = "";
  foreach (WIA.DeviceInfo info in manager.DeviceInfos)
  {
      if (info.Type == WIA.WiaDeviceType.ScannerDeviceType)
      {
          foreach (WIA.Property p in info.Properties)
          {
              if (p.Name == "Name")
                  {
                      deviceName = ((WIA.IProperty)p).get_Value().ToString();
                      Console.WriteLine(deviceName);
                  }
          }
      }
  }
  </code></pre>
  
  <p>However, the manager.DeviceInfos is always empty. I have 2 scanners attached, one of them shows in Control Panel->Scanners and Cameras, one doesn't, and both show under "Imaging Devices" in Device manager.</p>
  
  <p>Any suggestion on why none are appearing in WIA.DeviceManager.DeviceInfos?</p>
  
  <p>Running on Windows XP Service Pack 2</p>