If I got the threadId of a thread running in the system, how can I retrieve its handle. Thread is not created by me, it belongs to some other application
[email protected]
B'lore,
India.
Printable View
If I got the threadId of a thread running in the system, how can I retrieve its handle. Thread is not created by me, it belongs to some other application
[email protected]
B'lore,
India.
the OpenThread API returns a handle for a given ID.
Hello Lothar,
I think it was a guess work. OpenProcess is there to return handle of the process id. But there is no such corresponding APIs like OpenThread(). If it is an undocumented one please tell me where can I find it
[email protected]
B'lore,
India.
"guess work"? I take it as a joke!
OpenThread is documented in the Platform SDK. Requires Windows2000, though. Forgot to mention that.
Sorry Lothar,
Whats the solution for NT4.0. I found an undocumented function NtOpenThread() in NTDLL.Dll. I tried with the parameters like OpenProcess(), but returning error 0xC0000005. Do you know what is this error?
Regards,
[email protected]