implemented GetProcessIoCounters()

svn path=/trunk/; revision=8724
This commit is contained in:
Thomas Bluemel 2004-03-14 18:16:40 +00:00
parent cc68c2e317
commit 9789932e02
2 changed files with 28 additions and 16 deletions

View file

@ -1,4 +1,4 @@
/* $Id: stubs.c,v 1.67 2004/03/14 17:53:26 weiden Exp $
/* $Id: stubs.c,v 1.68 2004/03/14 18:16:39 weiden Exp $
*
* KERNEL32.DLL stubs (unimplemented functions)
* Remove from this file, if you implement them.
@ -942,20 +942,6 @@ GetProcessHandleCount(
return 0;
}
/*
* @unimplemented
*/
BOOL
STDCALL
GetProcessIoCounters(
HANDLE hProcess,
PIO_COUNTERS lpIoCounters
)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/*
* @unimplemented
*/

View file

@ -1,4 +1,4 @@
/* $Id: proc.c,v 1.60 2004/03/14 11:11:17 weiden Exp $
/* $Id: proc.c,v 1.61 2004/03/14 18:16:40 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -842,4 +842,30 @@ GetProcessVersion (DWORD ProcessId)
return (Version);
}
/*
* @implemented
*/
BOOL
STDCALL
GetProcessIoCounters(
HANDLE hProcess,
PIO_COUNTERS lpIoCounters)
{
NTSTATUS Status;
Status = NtQueryInformationProcess(hProcess,
ProcessIoCounters,
lpIoCounters,
sizeof(IO_COUNTERS),
NULL);
if (!NT_SUCCESS(Status))
{
SetLastErrorByStatus(Status);
return(FALSE);
}
return TRUE;
}
/* EOF */