从Windows服务检测何时显示Control-Alt-Delete屏幕 [英] Detect when the Control-Alt-Delete screen is displayed from Windows service

查看:89
本文介绍了从Windows服务检测何时显示Control-Alt-Delete屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用Windows服务开发一个单一的解决方案,并且在显示Control-Alt-Delete屏幕时(注销后或切换用户..etc),需要通知我.我一直在尝试通过检查会话事件信息和查询注册表设置来推断何时应显示屏幕,但是可能存在计时问题-服务发送cont-alt-del太早或因必须暂停以补偿而减慢了工作流程在不同的机器速度下,如果我能检测到何时显示Control-Alt-Delete屏幕,会更容易.任何帮助将不胜感激.

在此先谢谢您.

Hello all,

I am developing a single sing-on solution using a windows service and I need to be notified when the Control-Alt-Delete screen is displayed (after log off, or switch users..etc). I have been trying to deduce when the screen should be displayed by checking session event info and querying registry settings but there may be timing issues - the service sending cont-alt-del too early or slowing down the workflow by having to pause to compensate for different machine speeds, it would be easier if I could detect when the Control-Alt-Delete screen is displayed. Any help would be appreciated.

Thanks in advance.

推荐答案

此组合键是一个非常特殊的组合:无法通过任何方式截取它,OS会特别注意,明显的原因.

我不知道您的目的,但您可能需要信息亭模式,请参见:
使用C#以Kiosk模式运行网站 [ c#程序ctrl-alt-del屏幕窗口7 [ ^ ].

—SA
This key combination is a very special one: there is no a way to intercept it by any means, OS takes special care about it, by the apparent reason.

I don''t know your purpose, but you might need the Kiosk mode, see:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].

—SA


这篇关于从Windows服务检测何时显示Control-Alt-Delete屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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