In windows 2000, I want to get a thread's parent thread(which created the thread), is there a Windows API to get it?
any advice will be helpful!
thanks in adance
Mark Xu
April 3, 2003
Printable View
In windows 2000, I want to get a thread's parent thread(which created the thread), is there a Windows API to get it?
any advice will be helpful!
thanks in adance
Mark Xu
April 3, 2003
Why don't you hand it over?
You have to create the thread with CreateThread or _beginthread both of these function have a parameter to hand data to the thread. So when you need the parent thread take the thread id/handle and hand it to the new thread.
Hope that helped!
Horst