为了检测退出 [英] To detect logoff

查看:116
本文介绍了为了检测退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在一台PC被注销来检测。我需要开发其写入关于注销时间文本文档的应用程序之前,PC被注销。

Is it possible to detect when a PC is logging off. I need to develop an application which writes in a text document about the logoff time, before the PC gets logged off.

推荐答案

有关.NET看到了这个问题:<一href="http://stackoverflow.com/questions/4617538/is-there-a-way-in-c-to-detect-a-windows-shutdown-logoff-and-cancel-that-action">Is有没有办法在C#来检测Windows关机/注销和取消操作(询问用户后)

For .NET see this question: Is there a way in c# to detect a Windows shutdown/logoff and cancel that action (after asking the user)

这篇关于为了检测退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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