Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
eb31959a
Commit
eb31959a
authored
Nov 01, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Nov 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement GetProcessHandleCount.
parent
09c3d32f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
process.c
dlls/kernel32/process.c
+13
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
eb31959a
...
...
@@ -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)
...
...
dlls/kernel32/process.c
View file @
eb31959a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment