Skip to content

viam-labs/screenshot-cam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot-cam

subprocess control

This module needs to interact with the user desktop (i.e. take a screenshot) from a service context. In windows this is tricky because services are in session 0 and the user is in session 1.

We get around this by creating a subprocess

To test subprocess control in a command prompt, I think you need psexec from the pstools suite; I've been testing by:

  1. start -> cmd -> right click -> run as administrator
  2. in that administrator shell, start a new LocalSystem shell with ..\Downloads\PSTools\PsExec.exe -i -s cmd
  3. in that system shell, my stuff works. without it, one of WTSQueryUserToken or WTSGetActiveConsoleSessionId fails with 'required privilege is not held by the client' or something

About

a camera module which screenshots a display

Resources

License

Stars

Watchers

Forks

Packages

No packages published