Board index » cppbuilder » Memory used by a process

Memory used by a process


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.
 
 

Re:Memory used by a process

"Colin B Maharaj" < XXXX@XXXXX.COM >wrote in message
Quote
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.
Gambit