mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
implemented QueryWorkingSet()
svn path=/trunk/; revision=13052
This commit is contained in:
parent
3e133f3384
commit
cc5f2d10ce
3 changed files with 27 additions and 23 deletions
|
@ -22,7 +22,6 @@ TARGET_PCH = precomp.h
|
||||||
TARGET_OBJECTS = \
|
TARGET_OBJECTS = \
|
||||||
misc/dllmain.o \
|
misc/dllmain.o \
|
||||||
misc/malloc.o \
|
misc/malloc.o \
|
||||||
misc/stubs.o \
|
|
||||||
misc/win32.o
|
misc/win32.o
|
||||||
|
|
||||||
DEP_OBJECTS = $(TARGET_OBJECTS)
|
DEP_OBJECTS = $(TARGET_OBJECTS)
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
/* $Id$ */
|
|
||||||
#include "precomp.h"
|
|
||||||
|
|
||||||
#define NDEBUG
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
BOOL
|
|
||||||
STDCALL
|
|
||||||
QueryWorkingSet(HANDLE hProcess,
|
|
||||||
PVOID pv,
|
|
||||||
DWORD cb)
|
|
||||||
{
|
|
||||||
DPRINT1("PSAPI: QueryWorkingSet is UNIMPLEMENTED!\n");
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* EOF */
|
|
|
@ -1365,4 +1365,31 @@ GetProcessMemoryInfo(HANDLE Process,
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
BOOL
|
||||||
|
STDCALL
|
||||||
|
QueryWorkingSet(HANDLE hProcess,
|
||||||
|
PVOID pv,
|
||||||
|
DWORD cb)
|
||||||
|
{
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
Status = NtQueryVirtualMemory(hProcess,
|
||||||
|
NULL,
|
||||||
|
MemoryWorkingSetList,
|
||||||
|
pv,
|
||||||
|
cb,
|
||||||
|
NULL);
|
||||||
|
if(!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
SetLastErrorByStatus(Status);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue