Getting Peak Commit from NtQuerySystemInformation
Mike Driscoll <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Hi, I was tasked with finding a way to query our workstations for their Peak Commit Charge. According to the sysinternals forum: "The only way I'm aware of that one can get this detail is from the uMmPeakCommitLimit member of the SYSTEM_PERFORMANCE_INFORMATION structure one passes to NtQuerySystemInformation when calling it with the SystemPerformanceInformation type." (see http://forum.sysinternals.com/forum_posts.asp?TID=15540&PID=75852) I started with this question on the PyWin32 mailing list, but it turns out that they don't expose the functionality inside NtQuerySystemInformation so that's why I came here. Unfortunately, I'm a complete newb when it comes to ctypes. While I did find that this worked "ctypes.windll.ntdll.NtQuerySystemInformation", I don't know how to go on and actually query the object. Can someone give me a clue? I'm running Python 2.5 on Windows XP. Thanks! - Mike ------------------------------------------------------------------------------ Download Intel® 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