• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Determine if child thread still running (win32 api)


CreateThread() returns a HANDLE. If there anything I can do with this HANDLE to deterimine if the thread is still running?

Any other suggestions to determine the status of child threads would be helpful.

1 Solution
Call GetExitCodeThread().

If the thread is still active, you'll get error code STILL_ACTIVE.

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now