From the Microsoft documentation:
Quote:
The TerminateProcess function is used to unconditionally cause a process to exit. The state of global data maintained by dynamic-link libraries (DLLs) may be compromised if TerminateProcess is used rather than ExitProcess.
TerminateProcess initiates termination and returns immediately. This stops execution of all threads within the process and requests cancellation of all pending I/O. The terminated process cannot exit until all pending I/O has been completed or canceled.
A process cannot prevent itself from being terminated.
|
Terminating another process shouldn't be done by an application.
There are other ways to do it nicely. I have written a little command line tool which can be used to disable
AnyDVD if required.