Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

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.
 
Share this answer
 
Comments
Madzmar25 24-Aug-11 0:48am    
Im creating a internet cafe management system... and i was trying to hack my own system and i found out a loop hole that i can create a batch file and terminate the processes that keeps my program running... so im trying to find a way of handling this issue... if the hacker was able to find out what is the file name of my program that keeps my management system running then i should have a safety net to reopen my program when they try to close it, or maybe when they try to close it i would restart the computer so that when the computer boots up to the desktop its back to normal settings... that way when they try to close my program i can reopen it without any problem...
Simon Bang Terkildsen 24-Aug-11 0:53am    
ah yeah it is you with all the user restricting questions :D
Like I said it's not my area of expertise, while I said you can't prevent it, there is ofcourse (as always) a way to do it somehow, it's just a matter of how many dev hours you wanna put into it. Sadly I can't point you in any particular direction.
You have to hope that one of the "punch cards"-guys can give you a hack.
Sergey Alexandrovich Kryukov 24-Aug-11 1:08am    
My 5. You're absolutely right -- it's too late to prevent termination of the process; it can be terminated unconditionally; also, it's not possible to intercept Alt+Control+Del even with global system hook, by apparent reason -- OS treats this key combination in a special way. So, the real solution must be using the Kiosk Mode, and hardly anything else.
I provided some reference, please see my solution.
--SA
Simon Bang Terkildsen 24-Aug-11 1:10am    
Thank you for confirming that. And +5 for the nice links :)
Sergey Alexandrovich Kryukov 24-Aug-11 3:21am    
Thank you.
--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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900