按下 Ctrl + Alt + Delete 时,分配的访问权限应用程序退出. [英] Assigned access application exits when Ctrl + Alt + Delete is pressed.

查看:26
本文介绍了按下 Ctrl + Alt + Delete 时,分配的访问权限应用程序退出.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Windows 10 上设置了分配的访问权限.当前的突破键设置为 ctrl + alt + delete(默认).但是,似乎当使用此突破键时应用程序退出?是否可以保持应用程序运行,即基本上切换用户而不是注销?

I have set up assigned access on windows 10. The breakout key is currently set to ctrl + alt + delete (the default). However it seems as though when this breakout key is used that the application exits? Is it possible to keep the application running i.e. essentially switch user instead of log off?

推荐答案

可以在注册表中设置更大的超时时间

You can set larger time-out period in registry

要退出分配的访问帐户,请按 Ctrl + Alt + Del,然后然后使用另一个帐户登录.当您按 Ctrl + Alt + Del 时退出分配的访问权限,信息亭应用程序将自动退出.如果您以指定的访问帐户再次登录或等待登录屏幕超时,自助服务终端应用将重新启动.

To sign out of an assigned access account, press Ctrl + Alt + Del, and then sign in using another account. When you press Ctrl + Alt + Del to sign out of assigned access, the kiosk app will exit automatically. If you sign in again as the assigned access account or wait for the login screen timeout, the kiosk app will be re-launched.

如果您按 Ctrl + Alt + Del 并且没有登录其他帐户,一段时间后,分配的访问权限将恢复.默认时间为 30秒,但您可以在以下注册表项中更改它:

If you press Ctrl + Alt + Del and do not sign in to another account, after a set time, assigned access will resume. The default time is 30 seconds, but you can change that in the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI****

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI****

要更改分配访问权限的默认恢复时间,请添加IdleTimeOut (DWORD) 并以毫秒为单位输入数值数据十六进制.

To change the default time for assigned access to resume, add IdleTimeOut (DWORD) and enter the value data as milliseconds in hexadecimal.

取自 在 Windows 10 上设置自助服务终端

您可以在挂起事件中保存应用程序状态,然后在恢复事件中恢复此状态,就像推荐的那样.这不是太难.

You can save application state in suspending event and restore this state later in resuming event, like it's recommended. That's not too difficult.

在声明中添加:

    ApplicationDataContainer currentC = ApplicationData.Current.LocalSettings;

在 InitializeComponent() 之后的类构造函数中的某处;

And somewhere in class constructor after InitializeComponent();

    App.Current.Suspending += new SuspendingEventHandler(App_Suspending);
    App.Current.Resuming += new EventHandler<Object>(App_Resuming);

现在你应该意识到事件:

Now you should realize events:

 async void App_Suspending(object sender, Windows.ApplicationModel.SuspendingEventArgs e)
    {
 var waitState = e.SuspendingOperation.GetDeferral();
   // save all information from app in setting or in file
   currentC.Values["somesetting"] = someVariable;
 waitState.Complete();
    }

  private void App_Resuming(object sender, object e)
    {
        someVariable = (int)currentC.Values["somesetting"];
    }

您可以在网络上找到有关 应用程序生命周期的更多信息

You can find in web more information about App lifecycle

这篇关于按下 Ctrl + Alt + Delete 时,分配的访问权限应用程序退出.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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