Determine if child thread still running (win32 api)

Posted on 2005-05-12
Last Modified: 2013-11-13

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.

Question by:nerdmike
    1 Comment
    LVL 23

    Accepted Solution

    Call GetExitCodeThread().

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

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    abstract class with all non abstract mentods 6 58
    zeroMAx challenge 20 66
    triangle challenge 4 41
    noX challenge 17 55
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now