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
db9396f6
Commit
db9396f6
authored
Jun 20, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub implementations for ProcessVmCounters, ProcessTimes and
ProcessHandleCount. Changed ProcessIoCounters to match windows behavior.
parent
405ac7a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
3 deletions
+85
-3
process.c
dlls/ntdll/process.c
+85
-3
No files found.
dlls/ntdll/process.c
View file @
db9396f6
...
...
@@ -110,10 +110,73 @@ NTSTATUS WINAPI NtQueryInformationProcess(
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
case
ProcessIoCounters
:
if
(
ProcessInformationLength
==
sizeof
(
IO_COUNTERS
))
{
memset
(
ProcessInformation
,
0
,
ProcessInformationLength
);
len
=
sizeof
(
IO_COUNTERS
);
IO_COUNTERS
pii
;
if
(
ProcessInformationLength
>=
sizeof
(
IO_COUNTERS
))
{
if
(
!
ProcessInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
if
(
!
ProcessHandle
)
ret
=
STATUS_INVALID_HANDLE
;
else
{
/* FIXME : real data */
memset
(
&
pii
,
0
,
sizeof
(
IO_COUNTERS
));
if
(
ProcessInformationLength
>
sizeof
(
IO_COUNTERS
))
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
memcpy
(
ProcessInformation
,
&
pii
,
sizeof
(
IO_COUNTERS
));
len
=
sizeof
(
IO_COUNTERS
);
}
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
}
break
;
case
ProcessVmCounters
:
{
VM_COUNTERS
pvmi
;
if
(
ProcessInformationLength
>=
sizeof
(
VM_COUNTERS
))
{
if
(
!
ProcessInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
if
(
!
ProcessHandle
)
ret
=
STATUS_INVALID_HANDLE
;
else
{
/* FIXME : real data */
memset
(
&
pvmi
,
0
,
sizeof
(
VM_COUNTERS
));
if
(
ProcessInformationLength
>
sizeof
(
VM_COUNTERS
))
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
memcpy
(
ProcessInformation
,
&
pvmi
,
sizeof
(
VM_COUNTERS
));
len
=
sizeof
(
VM_COUNTERS
);
}
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
}
break
;
case
ProcessTimes
:
if
(
ProcessInformationLength
>=
32
)
{
if
(
!
ProcessInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
if
(
!
ProcessHandle
)
ret
=
STATUS_INVALID_HANDLE
;
else
{
memset
(
ProcessInformation
,
0
,
32
);
if
(
ProcessInformationLength
>
32
)
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
len
=
32
;
}
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
...
...
@@ -127,6 +190,25 @@ NTSTATUS WINAPI NtQueryInformationProcess(
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
case
ProcessHandleCount
:
if
(
ProcessInformationLength
>=
4
)
{
if
(
!
ProcessInformation
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
if
(
!
ProcessHandle
)
ret
=
STATUS_INVALID_HANDLE
;
else
{
memset
(
ProcessInformation
,
0
,
4
);
if
(
ProcessInformationLength
>
4
)
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
len
=
4
;
}
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
case
ProcessWow64Information
:
if
(
ProcessInformationLength
==
4
)
{
...
...
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