title: Is there a Windows system call I can make to view the number of OS threads a process is currently using?
body: <p>I've found the following question: <a href="https://superuser.com/questions/462969/how-can-i-view-the-active-threads-of-a-running-program">How can I view the active threads of a running program?</a></p>
  <p>I can see the number of individual threads running for a process in task manager, which leads me to believe I should be able to obtain them through a system call.</p>
  <p>Ex:
  <a href="https://i.stack.imgur.com/i0fgQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i0fgQ.png" alt="enter image description here" /></a></p>
  <p>The answer suggests using the process explorer utility... but how is it obtaining the number of threads currently in use by a process?</p>
  <p>If I knew the syscall, I could invoke it from another language such as Go lang. I need to access this information in my own software, not a GUI.</p>