mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
implemented GetProcessIoCounters()
svn path=/trunk/; revision=8724
This commit is contained in:
parent
cc68c2e317
commit
9789932e02
2 changed files with 28 additions and 16 deletions
|
@ -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)
|
* KERNEL32.DLL stubs (unimplemented functions)
|
||||||
* Remove from this file, if you implement them.
|
* Remove from this file, if you implement them.
|
||||||
|
@ -942,20 +942,6 @@ GetProcessHandleCount(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
BOOL
|
|
||||||
STDCALL
|
|
||||||
GetProcessIoCounters(
|
|
||||||
HANDLE hProcess,
|
|
||||||
PIO_COUNTERS lpIoCounters
|
|
||||||
)
|
|
||||||
{
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -842,4 +842,30 @@ GetProcessVersion (DWORD ProcessId)
|
||||||
return (Version);
|
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 */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue