mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Build psapi with NDK
svn path=/trunk/; revision=16171
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user