Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Screenshot with windows service

Screenshot with windows service

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpcomgraphicsquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stevie
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • S Stevie

      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

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      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:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups