Screen capture from windows service

前端 未结 3 1080
滥情空心
滥情空心 2020-12-01 09:54

I\'ve got DirectShow based screen capture software. Internally it calls CopyScreenToBitmap function to grab screen. Then the picture is compressed by ffdshow. It works fine

3条回答
  •  臣服心动
    2020-12-01 10:32

    As I understand it, a change was made in Vista that moved services onto a separate desktop from the console user. While you have ticked the box that "allows access" to the desktop, I think you still have to pragmatically switch your service to use that desktop.

    Here is a blog post with some useful info and examples.

提交回复
热议问题