Windows - 自定义锁屏链接到自定义应用程序?

发布于 2024-10-02 19:48:12 字数 103 浏览 2 评论 0原文

任何人都可以向我指出允许我放置自定义的文档/api Windows 锁定屏幕上的按钮或链接?

我希望能够从那里启动自定义程序。

谢谢。

拉尔夫

Would anyone be able to point me to docs/api that allow me to put a custom
button or link on windows lock screen ?

I want to be able to launch a custom program from there.

Thanks.

Ralph

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

携君以终年 2024-10-09 19:48:12

“锁定屏幕”是什么意思?
你可以运行:
rundll32 USER32.DLL,LockWorkStation
这将锁定当前用户,但不会注销。
您可以在“cmd”或“运行(开始菜单)”中运行它
或者...如果使用 C、VB、Delphi 等...您可以在 USER32.DLL 中调用函数“LockWorkStation”,并记住它区分大小写。

What do you mean on "lock screen" ?
You can just run:
rundll32 USER32.DLL,LockWorkStation
This will lock the current user, but doesn't log off.
You can run it in "cmd" or "Run (Start Menu)"
OR... if using C, VB, Delphi, others... you can just call function "LockWorkStation" at USER32.DLL, and remember it's case sensitive.

情定在深秋 2024-10-09 19:48:12

微软不太可能轻易允许你做类似的事情,因为这将是一个值得注意的安全漏洞。关键是,如果当前没有人被授权使用这台机器,那么就不可能运行程序。突然之间,尽管您的意图是最好和诚实的,但您的程序却成为了侵入机器的潜在后门。

MS 可能允许从登录屏幕使用的唯一一种自定义“应用程序”是备用身份验证机制(例如指纹读取器)。
这些可能会在驱动程序级别实现,并且必须与非常特定的 API 进行交互。即便如此,我怀疑这样的驱动程序是否会被允许运行任意应用程序。

您可能更愿意考虑让您的应用程序按计划运行或作为无需用户交互的服务运行。

It is highly unlikely that Microsoft would readily allow you to do something like that because it would be a security loophole of note. The point is that if no one is currently authorised to use the machine, it shouldn't be possible to run programs. Suddenly despite your best and honest intentions - your program becomes a potential backdoor to hack into machines.

The only kind of custom "application" MS might allow from the login screen would be alternate authentication mechanisms (e.g. fingerprint reader).
These would probably be implemented at the driver level, and have to interact with a very specific API. Even then, I doubt such a driver would be allowed to run an arbitrary application.

You may want to rather consider having your application run on a schedule or as a service without user interaction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文