implemented QueryWorkingSet()

svn path=/trunk/; revision=13052
This commit is contained in:
Thomas Bluemel 2005-01-15 02:44:25 +00:00
parent 3e133f3384
commit cc5f2d10ce
3 changed files with 27 additions and 23 deletions

View file

@ -22,7 +22,6 @@ TARGET_PCH = precomp.h
TARGET_OBJECTS = \
misc/dllmain.o \
misc/malloc.o \
misc/stubs.o \
misc/win32.o
DEP_OBJECTS = $(TARGET_OBJECTS)

View file

@ -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 */

View file

@ -1365,4 +1365,31 @@ GetProcessMemoryInfo(HANDLE Process,
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 */