diff --git a/reactos/lib/kernel32/misc/stubs.c b/reactos/lib/kernel32/misc/stubs.c index 53e87b77db5..db38a68e8b4 100644 --- a/reactos/lib/kernel32/misc/stubs.c +++ b/reactos/lib/kernel32/misc/stubs.c @@ -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 */ diff --git a/reactos/lib/kernel32/process/proc.c b/reactos/lib/kernel32/process/proc.c index a8091a8374a..04500dadc8d 100644 --- a/reactos/lib/kernel32/process/proc.c +++ b/reactos/lib/kernel32/process/proc.c @@ -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 */