Commit eb31959a authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

kernel32: Implement GetProcessHandleCount.

parent 09c3d32f
......@@ -576,7 +576,7 @@
@ stdcall GetProcAddress(long str)
@ stdcall GetProcessAffinityMask(long ptr ptr)
@ stdcall GetProcessFlags(long)
# @ stub GetProcessHandleCount
@ stdcall GetProcessHandleCount(long ptr)
@ stdcall GetProcessHeap()
@ stdcall GetProcessHeaps(long ptr)
@ stdcall GetProcessId(long)
......
......@@ -2784,6 +2784,19 @@ BOOL WINAPI GetProcessIoCounters(HANDLE hProcess, PIO_COUNTERS ioc)
return !status;
}
/******************************************************************
* GetProcessHandleCount (KERNEL32.@)
*/
BOOL WINAPI GetProcessHandleCount(HANDLE hProcess, DWORD *cnt)
{
NTSTATUS status;
status = NtQueryInformationProcess(hProcess, ProcessHandleCount,
cnt, sizeof(*cnt), NULL);
if (status) SetLastError( RtlNtStatusToDosError(status) );
return !status;
}
/***********************************************************************
* ProcessIdToSessionId (KERNEL32.@)
* This function is available on Terminal Server 4SP4 and Windows 2000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment