Click to See Complete Forum and Search --> : How can I get a thread's parent thread


ltxd
April 2nd, 2003, 06:50 PM
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

Horst
April 3rd, 2003, 12:15 AM
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