reactos/lib/kernel32/misc
diff -u -r1.67 -r1.68
--- stubs.c 14 Mar 2004 17:53:26 -0000 1.67
+++ stubs.c 14 Mar 2004 18:16:39 -0000 1.68
@@ -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.
@@ -947,20 +947,6 @@
*/
BOOL
STDCALL
-GetProcessIoCounters(
- HANDLE hProcess,
- PIO_COUNTERS lpIoCounters
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
GetProcessPriorityBoost(
HANDLE hProcess,
PBOOL pDisablePriorityBoost
reactos/lib/kernel32/process
diff -u -r1.60 -r1.61
--- proc.c 14 Mar 2004 11:11:17 -0000 1.60
+++ proc.c 14 Mar 2004 18:16:40 -0000 1.61
@@ -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 @@
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 */