How to replace the Logon Application on Windows 10 with a Custom Application

时间秒杀一切 提交于 2020-05-26 07:23:02

问题


I'd like to make my own custom program run on windows 10 in replacement of the start screen and logon screen.

Is there any way I can do this? I've currently replaced the accessibility program (accessible from the logon screen) with a command prompt, if I accidentally lock myself out (it has happened once!).

I recall seeing a particular Winlogon.exe. Is this my starting point? Am I able to replace the program that windows runs with my own?

Also, wrapping up, If I manage to replace this program, can I logon to windows in my program? I'm writing it in c#.


回答1:


Old post, but still relevant...

I don't know if you can, or should replace it, but you could write an overlaying app to cover it and do it's own thing, if you can use a little windows command-line magic combined with node.js. More of a work-around, but then you won't chance destroying any os-specific functionality, and it seems to be universal from Vista on up (to my knowledge at least). Here is how you can get your starting point to run a GUI app on the logon screen.

Node-Windows - Run GUI app on Logon screen

You can use this technique to run any app in any language that you can open it's window from a command-line.

There will be a brief period where the normal logon screen will be visible before your app starts, but this will let you do it.

Whatever language you use for your logon GUI, you will need to send simulated key input to the real logon screen, possibly mouse-clicks-- but you can likely use simulated tabs to get to the right logon. Likely MS has API's for C# as well as a variety of related dialects to programmatically logon to the desktop in a more elegant fashion than this last part, however.

Your app will be running as the SYSTEM user (unless you specify otherwise), therefore it will be running with the highest authority-- so you can basically do anything that is possible from there. Permissions won't stop you. Be careful with this.



来源:https://stackoverflow.com/questions/38975022/how-to-replace-the-logon-application-on-windows-10-with-a-custom-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!