Screenshot with windows service
-
Hi folks, I'm in need of your advice. I'm trying to create a screenshot from a c# application. This works well as long as I use my code within a standard desktop application. What we really need is a windows service taking screenshots. I tried Graphics.CopyFromScreen and the code in here Capturing the Screen Image in C# to grab an image but all I get back is a black image. Not even the dimension is correct. The service was started with LocalSystem and desktop interaction allowed. What did I miss? Any hints? I can provide the sources If it helps... Thank's in advance and best regards, Stevie
Greetings, Stephan Eberle hawke@deltacity.org
-
Hi folks, I'm in need of your advice. I'm trying to create a screenshot from a c# application. This works well as long as I use my code within a standard desktop application. What we really need is a windows service taking screenshots. I tried Graphics.CopyFromScreen and the code in here Capturing the Screen Image in C# to grab an image but all I get back is a black image. Not even the dimension is correct. The service was started with LocalSystem and desktop interaction allowed. What did I miss? Any hints? I can provide the sources If it helps... Thank's in advance and best regards, Stevie
Greetings, Stephan Eberle hawke@deltacity.org
As far as I know, starting with Vista, interactive services aren't allowed. Can you run a windowless app in the user session?
Mark Salsbery Microsoft MVP - Visual C++ :java: