How to write an unkillable process for Windows?

后端 未结 10 1109
梦如初夏
梦如初夏 2021-01-15 12:56

I\'m looking for a way to write an application. I use Visual C++ 6.0.

I need to prevent the user from closing this process via task manager.

10条回答
  •  旧巷少年郎
    2021-01-15 13:39

    You can make an unkillable process, but it won't be able to accomplish anything useful while it's unkillable. For example, one way to make a process unkillable is to have it make synchronous I/O requests to a driver that can never complete (for example, by deliberately writing a buggy driver). The kernel will not allow a process to terminate until the I/O requests finish.

    So it's not quite true that you "can't do it" as some people are saying. But you wouldn't want to anyway.

提交回复
热议问题