如何以编程方式禁用 Windows 8 Charms 栏? [英] How to disable the Windows 8 Charms bar programmatically?

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

问题描述

我需要创建一个应用程序,该应用程序将在 Windows 8 上全屏运行并且用户不应该能够轻松退出.

I need to create an application that will run full-screen on Windows 8 and which the user shouldn't be able to exit easily.

由于该应用程序将在仅具有触觉输入的计算机或平板电脑上运行,因此我将创建一个无边框的顶级 WPF 应用程序,该应用程序只能在连接键盘时关闭.

Since the application will be running on computers or tablets with only tactile input, I was going to create a chromeless and top-most WPF application, which could only be closed if a keyboard is connected.

问题是左侧的应用切换栏和右侧的魅力栏仍然可以在没有键盘的情况下打开,并允许用户退出应用程序.这可以从代码中禁用吗?我似乎找不到办法.

The problem is that the app switching bar on the left and the charms bar on the right can still be opened without a keyboard and would allow users to exit the application. Can this be disabled from code? I can't seem to find a way.

简单的解决方案是在另一个操作系统上运行,但机器将运行 Windows 8,对此我无能为力.

The easy solution would be to run on another OS, but the machines will be running Windows 8 and there's not much I can do about that.

推荐答案

我挖了一个 .TXT 和一些我前段时间在网上找到的笔记,它可能会有所帮助(最坏的情况,它没有适用于 Windows 8 并且不起作用.不幸的是我无法引用它的来源,我真的不记得它来自哪里):

I have dug up a .TXT with some notes I found somewhere on the net some time ago, it might be helpful (worst case scenario, it doesn't apply to Windows 8 and doesn't work. Unfortunately I'm unable to cite a source for it, I don't really remember where it came from):

信息亭模式"从 XP 开始就已经存在.通常它的目的是锁定 IE 以显示一些交互式网页而不让用户关闭它:它被称为强制用户配置文件.

A "kiosk mode" has already existed since XP. Usually it's aimed at locking IE up in order to show some interactive webpage while not letting the user close it: it's called mandatory user profiles.

设置:

  1. 按照您想要的方式设置帐户.设置组策略,设置启动程序用户必须是标准用户,而不是管理员.但话又说回来,如果未经授权的人即使在计算机冻结"的情况下也可以获得管理员权限,我认为您会遇到更严重的问题.
  2. 以管理员身份登录和计算机属性>高级>用户配置文件设置>(选择该配置文件)>(将其复制到任何位置)>将允许使用"设置为每个人
  3. 转到该文件夹​​的属性>安全>(更改它以便每个人都可以读取和修改,但不能写入,确保您应用到里面的所有内容)
  4. 将 NTUSER.DAT 重命名为 NTUSER.MAN
  5. 打开计算机管理>本地用户和组>用户>(创建新用户)>(打开新创建的用户)>配置文件>(在配置文件路径上,将其设置为该文件夹)
  6. 禁用您刚刚复制的用户(因为您不希望人们登录那里)
  1. Set up the account just the way you want. Set the group policy, set up the startup programs The user must be a standard user, not an admin. But then again, if an unauthorized person can get admin rights even though the computer is "frozen", I think you got more serious problems.
  2. Login as admin and Computer Properties > Advanced > User Profiles Settings > (select that profile) > (copy it to whatever place) > set "permitted to use" to Everyone
  3. Go to that folder properties > Security > (change it so that Everyone can read and modify, but not write, make sure you apply to EVERYTHING inside)
  4. Rename NTUSER.DAT to NTUSER.MAN
  5. Open Computer Management > Local Users and Groups > Users > (create a new user) > (open that newly created user) > Profile > (on profile path, set it to that folder)
  6. Disable the user that you just copied (since you don’t want people to login to there)

当您完成并登录新帐户后,您会发现它的运行方式与您一直在寻找的自助服务终端模式非常相似.要撤消更改,请注销并重新登录.

When you’re finished and log in the new account, you will find out it performs almost like kiosk mode that you have been seeking for. To undo changes, log off and log back in.

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

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