GetPerformanceInfo() doesn't give info for the process, only system-wide info.
The closest thing GetProcessMemoryInfo() has is the working set which isn't always the amount of memory the program uses).
GetProcessTimes() seems to work as expected though!
Obtaining used memory
Err, somehow I mispasted or something - I meant GetProcessMemoryInfo
If that isn't what you want, I'm not sure I know what you do want - it gives all the memory statistics relevant to a process.
GlobalMemoryStatus returns things like total available memory, which are meaningless in the context of a process because a process can use the entire available system memory (including pagefile) up to a hardware-imposed limit (ie 4GB on a 32-bit machine).
If that isn't what you want, I'm not sure I know what you do want - it gives all the memory statistics relevant to a process.
GlobalMemoryStatus returns things like total available memory, which are meaningless in the context of a process because a process can use the entire available system memory (including pagefile) up to a hardware-imposed limit (ie 4GB on a 32-bit machine).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement