mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
implemented GetProcessIoCounters()
svn path=/trunk/; revision=8724
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user