用 WPF 应用程序替换 Windows shell [英] Replacing the Windows shell with a WPF app

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

问题描述

我想用我的 WPF 应用程序替换 Windows 7 Shell(32 位和 64 位),它应该可以作为 Shell 工作.目标是 WPF 应用程序将启动我的 Kiosk 应用程序并提供少量服务.

I want to replace Windows 7 Shell (32 and 64 bit) with my WPF application which should work as a Shell. The goal is WPF application will launch my Kiosk application and provide few services.

我的问题是

  1. 我如何替换 Windows 7 ShellWPF 应用程序?

  1. How do I replace the Windows 7 Shell by my WPF application ?

我必须做吗我的 WPF 中有一些特别的东西应用程序代码或必需注册表更改以执行 WPF应用程序作为外壳?

Do I have to do something special in my WPF application code or required registry changes to execute WPF application as a shell?

谢谢.

推荐答案

1.) 在 HKEY_Current_User\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell 处更改用户的注册表项——它是 REG_SZ 类型(即字符串),它需要可执行文件的完整路径.(更多信息可以在此处--它说它适用于 XP-Embedded,但操作方法也适用于 Win7.)

1.) Change the user's Registry entry at HKEY_Current_User\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell -- it is a REG_SZ type (that is, a string) which expects the full path to the executable. (A little more info can be found here--it says it's for XP-Embedded, but the how-to is good for Win7 as well.)

2.) 不,你不需要在你的应用程序中做任何特别的事情——只要确保用户可以获得你需要的所有命令(例如注销)和not 去那些你想避免的.如果我没记错的话,计算机的 Ctrl-Alt-Del 行为不会因自定义外壳而改变,因此您可以使用它来获取注销/关闭命令以及任务管理器.

2.) No, you don't need to do anything special in your app--just be sure that users can get to all the commands you need to (e.g. log off) and not get to the ones you want to avoid. If I recall correctly, the computer's Ctrl-Alt-Del behavior doesn't change with a custom shell, so you can use that to get your logoff/shutdown commands as well as Task Manager.

这篇关于用 WPF 应用程序替换 Windows shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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