title: Why does print screen in a Windows Service return a black image?
body: <pre><code>protected override void OnStart(string[] args)
  {
      base.OnStart(args);
      CaptureScreen();
  
  }
  
  protected override void OnStop()
  {
      base.OnStop();
  
  }
  
  private void CaptureScreen()
  {
  
      Bitmap printscreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
  
      Graphics graphics = Graphics.FromImage(printscreen as Image);
  
      graphics.CopyFromScreen(0, 0, 0, 0, printscreen.Size);
  
      printscreen.Save(@"L:\" + Counter++ + ".jpg", ImageFormat.Jpeg);
  }
  </code></pre>
  
  <ul>
  <li>I checked interact with desktop</li>
  <li>tried the the localService account &amp; user </li>
  </ul>