Screenshot secure desktop

后端 未结 1 1212
借酒劲吻你
借酒劲吻你 2021-02-05 15:50

I am working with screen sharing project.I am capturing desktop screen using below function.it works fine. But whenever secure desktop prompting for elevation.it returns black/e

相关标签:
1条回答
  • 2021-02-05 16:18

    In order to get the screen contents of the Secure Desktop, your application needs to fulfill some special criteria:

    • it must run under the SYSTEM account, not the logged-on user account
    • it must run on the Winlogon desktop, not on the user desktop
    • it should run as a service

    To test it, you could e.g. use the SysInternals PsExec tool to run your application in that mode:

    PsExec /h /x /d /s "path_to\your_application.exe"
    

    The /x and /s switches are important: they run the process under the SYSTEM account and on the Winlogon desktop.

    If you want to avoid using third-party tools, you need to create your own Windows service which will perform the screen captures of the Secure Desktop.

    There is no source code of PsExec available, but you can look at the PAExec tool's source code - it's an open source alternative.

    0 讨论(0)
提交回复
热议问题