smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
619 stars 156 forks source link

capture lock and login screen Windows #26

Closed boonkerz closed 6 years ago

boonkerz commented 6 years ago

Is it possible to capture login screen within an windows service?

smasherprog commented 6 years ago

Yes, the code will capture the screens properly if the code is added to run as a service. I built this specifically for that purpose.

smasherprog commented 6 years ago

The hard part is writing the service to change to the active session.. You will have to monitor which action session by https://msdn.microsoft.com/en-us/library/aa383838(v=vs.85).aspx and switch the screen capture to run in that session.

boonkerz commented 6 years ago

yea but this is not implemented yet? but if no user logged in how should we handle this?

smasherprog commented 6 years ago

A windows service to capture the screen is beyond the scope of this library. But you want to know how its done, you can check this code out https://github.com/smasherprog/RemoteDesktop/tree/master/RemoteDesktopServer_Library

smasherprog commented 6 years ago

I am closing this as beyond the scope of this library. Please ask any questions though as I have done what you are looking for and I can point you in the right directions.

Berets commented 10 months ago

Hi i'm trying C# dll in a WPF project, but when i lock the screen while the application running, it stop to register frames, even if i run as admin.

smasherprog commented 10 months ago

This is way beyond the scope of this program. I posted above where I have done this. You need to run the program as a service in order to capture LOCK screens or the UAC pop up stuff. This is NON trivial and needs to be written into the application, not the library