PDA

View Full Version : How tet process size?


danielherrero
14th June 2007, 10:19 AM
Hi.
Does someone know how to get programatically the size of a running process? Including memory heap, static data and code?. I mean, tipical memory usage of a process. I ve read something about UserKInfo but the code is incomplete. Any idea?
Thanks

Houser
14th June 2007, 02:55 PM
Hey,

look for CreateToolhelp32Snapshot() and Heap32First() function.
You can enum through the heaps and processes.

Houser