CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Posts
    4

    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

  2. #2
    Join Date
    Sep 2000
    Location
    Germany
    Posts
    117
    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
  •  





Click Here to Expand Forum to Full Width

Featured