[DllImport("psapi.dll", SetLastError = true)]
static extern bool GetPerformanceInfo(out PERFORMANCE_INFORMATION pPerformanceInformation, uint cb);
Declare Function GetPerformanceInfo Lib "psapi.dll" (TODO) As Boolean
[StructLayout(LayoutKind.Sequential)]
public struct PERFORMANCE_INFORMATION
{
uint cb;
UIntPtr CommitTotal;
UIntPtr CommitLimit;
UIntPtr CommitPeak;
UIntPtr PhysicalTotal;
UIntPtr PhysicalAvailable;
UIntPtr SystemCache;
UIntPtr KernelTotal;
UIntPtr KernelPaged;
UIntPtr KernelNonpaged;
UIntPtr PageSize;
uint HandleCount;
uint ProcessCount;
uint ThreadCount;
}
Do you know one? Please contribute it!
None.
Please add some!
Please add some!
Documentation:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683210%28v=vs.85%29.aspx (GetPerformanceInfo)
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684824%28v=vs.85%29.aspx (PERFORMANCE_INFORMATION struct)