如何以编程方式在 Windows 7 中禁用 Ctrl-Alt-Del? [英] How can I disable Ctrl-Alt-Del in windows 7 programmatically?

查看:28
本文介绍了如何以编程方式在 Windows 7 中禁用 Ctrl-Alt-Del?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Windows 7 中在应用程序加载时禁用 Ctrl-Alt-Del?我正在寻找一个示例,该示例在应用启动时禁用 Ctrl-Alt-Del,并在完成后再次启用组合.

How to disable Ctrl-Alt-Del in Windows 7 when the application loads? I'm looking for an example that disables Ctrl-Alt-Del when the app starts, and enables the combination again once it finishes.

我发现了一个在 Windows XP 上禁用组合的示例,但是,它在 Windows 7 上似乎不起作用.为什么?在 Windows 7 上不允许禁用 Ctrl-Alt-Del?

I found an example that disables the combination on Windows XP, however, it doesn't seem to work on Windows 7. Why? Is it not allowed on Windows 7 to disable Ctrl-Alt-Del?

另外,我想知道如何在 Windows 7 上以管理员身份运行应用程序?

Also, I'd like to know how to run an application as admin on Windows 7?

推荐答案

在我看来,这只能通过全局钩子来完成.但是.NET不支持全局钩子,看看这个答案.所以你不能用 VB.NET 但可以用 C++.

In my opinion this can be done only with global hook. But global hook is not supported by .NET, take a look at this answer. So you can't do this with VB.NET but can with C++.

您可以使用 VB.NET 或任何其他 .NET 语言执行此操作,请参阅有关指针的注释.

you can do this with VB.NET or any other .NET language, see comments for pointers.

这篇关于如何以编程方式在 Windows 7 中禁用 Ctrl-Alt-Del?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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