处理程序意外终止 [英] Handles unexpected program termination

查看:115
本文介绍了处理程序意外终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.有人可以帮助我,也可以给我一个想法,该如何检测正在运行的程序是否由于某种中断而终止了?让我说我正在运行program_1,有些讨厌的人使用命令提示符或去了任务管理器并结束了我的程序...我想处理这种情况...我买了一个禁用alt control del命令的api,但是如果那个人使用批处理文件终止我的程序,那该怎么办...我应该如何处理这种情况?有什么想法吗?

Hi. can someone help me or give me an idea on how to detect if my running program was terminated by some kind of interruption? let say im running program_1 and some nasty people use command prompt or went to task manager and end process my program... i want to handle this kind of situation... i bought an api that disable the alt control del command, but the thing is what if that person use a batch file to terminate my program... how am i suppose to handle that kind of situation? any idea?

推荐答案

这不是我的专业领域,但是我认为您不能阻止任何人终止您的应用程序,如果他们真的想要.

请问您为什么要这么做?我的意思是,如果 想要终止我的应用程序,那我无疑是恶意软件.
This is far from my area of expertise, but I don''t think you can prevent anyone from terminating your application, if they really want to.

May I ask why you would want to do that?! I mean if I can''t terminate an application when I want to, then I have no doubt that it is malware.


您的解决方案很可能将是Kiosk模式.

请参阅:
使用C#以Kiosk模式运行网站 [ c#程序ctrl-alt-del屏幕窗口7 [ ^ ].

—SA
Most likely, your solution will be the Kiosk Mode.

Please see:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].

—SA


这篇关于处理程序意外终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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