I am using “TerminateProcess (procHandle, 0)” to kill threads. It works for most, but some threads it can’t kill. WHY? Also the task manager can’t kill those threads either.
Is there a way to force kill any thread?
What else can I do?
thx
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Normally you cannot kill processes of other users if you don’t have required rights. For example it is not possible to kill processes running as SYSTEM user, processes of other users on a terminal server, etc.
Citation from MSDN: “The handle must have the PROCESS_TERMINATE access right. For more information, see Process Security and Access Rights.”