Prevent C# app from process kill

后端 未结 9 1646
我寻月下人不归
我寻月下人不归 2020-11-29 11:39

How can I protect my C# app from someone killing its process via taskman or programmatically?

Here is my scenario:

App A is an MFC app developed by another t

9条回答
  •  被撕碎了的回忆
    2020-11-29 11:57

    When the application initiates for the first time could you not execute a 3rd ap/process that is running in the background and attempts to callback to App B every so ofter, so when that App B is closed.. App C can see that and executes a procedure to close App A's backdoor.

    So that when App B closes successfully via the intended Close button it will disable App C from checking App B is still working fine...

    Im not really the best with C# at the moment but looking at your problem thats probably one of the ways i would try to do it..

    Also if App B checks App C aswell then if App C has gone down App B will close the backdoor if it can.

    As the others say this may not be a good idea tho.

提交回复
热议问题