Little diferences betwen GetProcessMemoryInfo and the memory use reported by taskmanager (winxp)

I use the GetProcessMemoryInfor to get info about the memory consume of my app.

1
2
3
4
5
6
7
8
9
10
11
12
GetProcessMemoryInfo( hProcess, &pmc, sizeof(pmc)) )
    {
    pmc.PageFaultCount;
    pmc.PagefileUsage;
    pmc.PeakPagefileUsage;
    pmc.PeakWorkingSetSize;
    pmc.QuotaNonPagedPoolUsage;
    pmc.QuotaPagedPoolUsage;
    pmc.QuotaPeakNonPagedPoolUsage;
    pmc.QuotaPeakPagedPoolUsage;
    pmc.WorkingSetSize;
}


It seems that
pmc.PeakWorkingSetSize;
pmc.WorkingSetSize;
can be almost equal to mem use reported by taskmanager (winxp).

But there are some litte diferences.
Any Idea ?
Thanks
Topic archived. No new replies allowed.