|
-
April 2nd, 2003, 07:50 PM
#1
How can I get a thread's parent thread
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
-
April 3rd, 2003, 01:15 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|