It's been a while since I touched C #, but there is something to try. If your application will work as a system and can simulate user input. Just send the keys CTRL + ALT + DELETE to the console. This is how all the VNC / DAMEWARE / HYENA tasks perform. Conversely, they are all written in C or C ++.
Do not try to interact with LSASS in the api call to unlock the screen. A call to the security subsystem to unlock the screen must be done by pressing keys, and some A / Vs are looking for applications that try to do this in other ways.
source share