Screen capture from windows service

Posted by bezieur on Stack Overflow See other posts from Stack Overflow or by bezieur
Published on 2009-06-16T15:01:26Z Indexed on 2010/03/28 21:23 UTC
Read the original article Hit count: 448

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 as a desktop application, but as window service, on certain computers it does not work (black picture). I've set 'Allow service to interact with desktop' and run that service on current user account. Any ideas what could be wrong?

I test it on windows XP, but it is expected to work on Vista and 7 as well.

Yes it works as desktop application on all computers, but on some of them (on majority of them) it fails as a service.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c#