Hi all.
Is there a way to query the number of threads that are currently running for a specific process using the standard Windows C/C++ APIs?
I already prowled through the MSDN docs but the only thing that comes near is
BOOL WINAPI GetProcessHandleCount(
__in HANDLE hProcess,
__inout PDWORD pdwHandleCount
);
which queries the number of system handles currently in use by a given process, which will include thread handles, but will not be limited to them.
Any insights would be greatly appreciated.
Thanks in advance.
Bjoern