问题描述
Windows Vista中增加了一个新功能,叫做安全桌面。它看起来很棒,真正吸引用户的关注。但现在,我想用这款台式机在我的.NET / C#或Delphi / Win32应用程序。并把它用于自己的对话,这将要求用户大约5不同,但敏感的信息片段。
Windows Vista added a new feature called the "Secure Desktop". It looks great and really draws the user's attention. But now, I want to use this desktop in my .NET/C# or Delphi/WIN32 application. And use it for my own dialog, which will ask the user for about 5 different but sensitive pieces of information.
有没有办法把它用在.NET?有没有办法把它用在WIN32?
Is there a way to use it in .NET?Is there a way to use it in WIN32?
推荐答案
如果你仔细想想,你会发现,没有办法改变这一安全桌面。
If you think about it, you'll discover that there's no way to change that secure desktop.
安全桌面是正常的桌面上面,用一切禁用。而且它不允许正常的程序来干扰它(否则将是无用的)。
The secure desktop is above the normal desktop, with everything else disabled. And it doesn't allow normal programs to interfere with it (otherwise it would be useless).
和AFAIK它也以提升权限运行,因此可以提高不管它是呼吁,如果你点击是。
And AFAIK it also runs with elevated privileges so it can elevate whatever it was called for if you click on "yes".
所有你能做的就是尝试按当前桌面的截图效仿安全桌面,变暗的图像,然后创建一个顶级窗口,绘制图像,然后显示出与上按钮的对话框(也作为一个顶层窗口)。但当然,一个简单的使用Alt-Tab将允许用户切换回来。
All you can do is try to emulate the secure desktop by taking a screenshot of the current desktop, darken that image, then create a top-level window, draw that image in it, then show a dialog with buttons on it (also as a top-level window).But of course, a simple alt-tab will allow users to switch back.
这篇关于如何使用Windows Vista和W7的安全桌面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!