On Win32, how can a C++ program determine how many threads are active in my program’s process? Is there an API call?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use Tool Help API to enumerate the current processes running and within each process the threads running. Of course by the time you have completed the analysis more tasks and threads may have started and others may have ended.