2006-05-24 05:43:53 AM cppbuilder49
Hi all, I have a Process ID of a running process with threads, how can I
tell how many threads are present and how much RAM is being used by the
process (C++ Builder Code please).
Thanks!!!!
Colin B Maharaj
Trinidad, WI.
I have a Process ID of a running process with threads, how
can I tell how many threads are present
Look at the CreateToolhelp32Snapshot() and Thread32First/Next() functions.
Create a snapshot of the system, then you can enumerate the threads that
belong to the ID you have.
Quote
and how much RAM is being used by the process
Have a look at the Heap32First/Next() functions.