Build psapi with NDK

svn path=/trunk/; revision=16171
This commit is contained in:
Alex Ionescu 2005-06-20 19:38:25 +00:00
parent 0bbb2a98cd
commit aa1e7d31e8
2 changed files with 13 additions and 16 deletions

View file

@ -1,14 +1,11 @@
#define NTOS_MODE_USER
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <psapi.h>
#include <epsapi.h>
#include <ntos.h>
#include "internal.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <ddk/ntddk.h>
#include <napi/teb.h>
#include <ntos/heap.h>
#include <ntdll/ldr.h>
#include <pseh.h>

View file

@ -1129,7 +1129,7 @@ EnumPageFilesW(PENUM_PAGE_FILE_CALLBACKW pCallbackRoutine,
return FALSE;
}
Status = NtQuerySystemInformation(SystemPagefileInformation,
Status = NtQuerySystemInformation(SystemPageFileInformation,
Buffer,
BufferSize,
NULL);
@ -1301,16 +1301,16 @@ GetPerformanceInfo(PPERFORMANCE_INFORMATION pPerformanceInformation,
*/
pPerformanceInformation->cb = sizeof(PERFORMANCE_INFORMATION);
pPerformanceInformation->CommitTotal = spi.TotalCommittedPages;
pPerformanceInformation->CommitLimit = spi.TotalCommitLimit;
pPerformanceInformation->CommitTotal = spi.CommittedPages;
pPerformanceInformation->CommitLimit = spi.CommitLimit;
pPerformanceInformation->CommitPeak = spi.PeakCommitment;
pPerformanceInformation->PhysicalTotal = sbi.NumberOfPhysicalPages;
pPerformanceInformation->PhysicalAvailable = spi.AvailablePages;
pPerformanceInformation->SystemCache = 0; /* FIXME - where to get this information from? */
pPerformanceInformation->KernelTotal = spi.PagedPoolUsage + spi.NonPagedPoolUsage;
pPerformanceInformation->KernelPaged = spi.PagedPoolUsage;
pPerformanceInformation->KernelNonpaged = spi.NonPagedPoolUsage;
pPerformanceInformation->PageSize = sbi.PhysicalPageSize;
pPerformanceInformation->KernelTotal = spi.PagedPoolPages + spi.NonPagedPoolPages;
pPerformanceInformation->KernelPaged = spi.PagedPoolPages;
pPerformanceInformation->KernelNonpaged = spi.NonPagedPoolPages;
pPerformanceInformation->PageSize = sbi.PageSize;
pPerformanceInformation->HandleCount = shi.NumberOfHandles;
pPerformanceInformation->ProcessCount = ProcessCount;
pPerformanceInformation->ThreadCount = ThreadCount;