Re: Getting Peak Commit from NtQuerySystemInformation

Thomas Heller <[email protected]>
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
Mike Driscoll schrieb:
> Hi Thomas,
> 
> On 3/3/2010 3:14 AM, Thomas Heller wrote:
[...]
> 
> When I run this on my machine, it gives me 368456 as the result, whereas 
> Task Manager give me 1473824. Stupid question, but do I need to convert 
> the long to a kilobyte or something?  I tried, but that was way off, so 
> I must be doing something wrong. Thank you for your help!

Mike, I said this snippet is not really tested.
I created the definition of the SYSTEM_PERFORMANCE_INFORMATION
structure from some sample C++ code I found on the internet;
it may be wrong, it may be that I made a mistake or whatever.

You have to do some research:  Find out the real definition of this structure,
(I don't known if it is in some MS header file), you have to compare it to my code,
you have to find out what the field contents really means: kilobyte, pages, or whatever.

-- 
Thanks,
Thomas


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.