c# - Windows 7 的登录屏幕更换

标签 c# c++ windows-7

<分区>

Possible Duplicate:
How can I customize the login screen for Windows Vista & 7?

我正在开发一个自定义的 Windows 登录屏幕,它将被 Windows 7 的默认登录屏幕取代。为此我需要一些信息。

  1. C# 还是 C++ 的正确语言
  2. 如果 C# 是不错的选择,那么使用 WPF 来获得漂亮的 UI 又如何。
  3. 我可以使用 PrincipalContext 类对用户进行身份验证,现在在身份验证之后我需要为该用户显示桌面。我该怎么做。

如果您能提供任何代码示例或引用资料,那将会很有帮助。

最佳答案

根据 MSDN Magazine ,您不能使用托管代码,也不能绘制自己的 UI。

关于绘制UI:

There has also been an important change regarding which component renders the graphical aspect of the logon. Previously, this was handled by GINA and thus a third-party component could have been doing the rendering. In the new architecture, LogonUI, which is a built-in piece of the operating system, is responsible for this.

So how is per-provider user prompting behavior achieved in the new model? The Credential Provider architecture requires each provider to enumerate its UI elements. For example, in a given scenario, a provider might indicate to LogonUI that it requires two edit boxes, two captions, a checkbox, and a bitmap. In turn, LogonUI renders those controls on behalf of the credential provider. This goes a long way toward achieving the goal discussed previously-a consistent look and approach that supports a broad set of evolving authentication scenarios.

关于托管代码:

The credential provider architecture and its host support only native code.

关于c# - Windows 7 的登录屏幕更换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4518588/

相关文章:

c# - 第一个 TreeViewItem 未设置样式(MahApps Metro TreeView)

c# - 谷歌天气 API 403 错误

c++ - 使用类别方法在 NSDecimalNumber 上重载算术运算符

c# - 尝试将文件上传到 Azure 文件共享时出错

c++ - 基类无法按预期访问 protected 成员

c++ - 静态库依赖+VS2010+SVN

javascript - 如何在本地为我经常使用的网站加载样式表和脚本,并希望为个人使用定制?

mysql - 尝试在 Windows 7 上启动 MySQL

windows - 批处理文件 - 命令的语法不正确

c# - Flex/Flash/Java/C# 中的漂亮日期文本