如何使用自定义应用程序替换Windows 10上的登录应用程序 [英] How to replace the Logon Application on Windows 10 with a Custom Application

查看:214
本文介绍了如何使用自定义应用程序替换Windows 10上的登录应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让自己的自定义程序在Windows 10上运行,以代替开始屏幕和登录屏幕.

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!).

我记得看到一个特定的Winlogon.exe.这是我的出发点吗?我可以用我自己的程序替换Windows运行的程序吗?

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?

最后,如果我设法替换了该程序,是否可以登录到程序中的Windows?我正在用C#编写.

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

推荐答案

旧帖子,但仍然有用...

Old post, but still relevant...

我不知道是否可以替换它,或者应该替换它,但是如果您可以使用一些Windows命令行,则可以编写一个覆盖应用程序来覆盖它并自己做魔术与node.js结合.更多的解决方法,但是您将没有机会破坏任何特定于OS的功能,并且从Vista开始(至少据我所知),它似乎是通用的.这是您获取在登录屏幕上运行GUI应用程序的起点的方法.

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-在登录"屏幕上运行GUI应用程序

您可以使用此技术以可以从命令行打开其窗口的任何语言来运行任何应用.

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.

无论您用于登录GUI的语言是什么,您都需要将模拟的按键输入发送到实际的登录屏幕(可能是单击鼠标),但是您可能会使用模拟的选项卡来进行正确的登录.但是,MS可能具有用于C#的API以及各种相关方言,从而比上一部分更优雅地以编程方式登录到桌面.

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.

您的应用将以SYSTEM用户身份运行(除非您另行指定),因此它将以最高权限运行-因此,您基本上可以从那里做任何可能的事情.权限不会阻止您.对此要小心.

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.

这篇关于如何使用自定义应用程序替换Windows 10上的登录应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆