Hi,
How can I terminate a System thread whose handle is passed to me. (OS is
NT/2K)
I cant use PsTerminateSystemThread(STATUS_SUCCESS) since I am not in the
same Thread context which I want to kill, I just have the handle.
Is there a kernelCall available …
TIA
Rahul
“rahul.gupta” wrote:
How can I terminate a System thread whose handle is passed to me. (OS is
NT/2K)
I cant use PsTerminateSystemThread(STATUS_SUCCESS) since I am not in the
same Thread context which I want to kill, I just have the handle.
Is there a kernelCall available …
No. You will need some mechanism to ask the thread routine itself to
make the call to PsTerminateSystemThread. I commonly use an event that
the thread routine waits on. Check out the POLLING sample in my WDM book
for an example.
–
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com
You cannot, system threads can only exit themselves, they cannot be
killed from other thread.
Max
----- Original Message -----
From: “rahul.gupta”
To: “NT Developers Interest List”
Sent: Tuesday, November 12, 2002 4:35 PM
Subject: [ntdev] Terminating System thread …
> Hi,
> How can I terminate a System thread whose handle is passed to me.
(OS is
> NT/2K)
> I cant use PsTerminateSystemThread(STATUS_SUCCESS) since I am not in
the
> same Thread context which I want to kill, I just have the handle.
> Is there a kernelCall available …
>
> TIA
> Rahul
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>