Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c0ffd587
Commit
c0ffd587
authored
Jan 13, 2023
by
Brendan Shanks
Committed by
Alexandre Julliard
Feb 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add stub for NtQueryInformationProcess(ProcessCycleTime).
parent
fe6294c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
process.c
dlls/kernel32/tests/process.c
+2
-1
process.c
dlls/ntdll/unix/process.c
+19
-0
process.c
dlls/wow64/process.c
+1
-0
winternl.h
include/winternl.h
+5
-0
No files found.
dlls/kernel32/tests/process.c
View file @
c0ffd587
...
...
@@ -3710,7 +3710,7 @@ static void test_process_info(HANDLE hproc)
0
/* FIXME: sizeof(?) ProcessTlsInformation */
,
sizeof
(
ULONG
)
/* ProcessCookie */
,
sizeof
(
SECTION_IMAGE_INFORMATION
)
/* ProcessImageInformation */
,
0
/* FIXME: sizeof(PROCESS_CYCLE_TIME_INFORMATION)
ProcessCycleTime */
,
sizeof
(
PROCESS_CYCLE_TIME_INFORMATION
)
/*
ProcessCycleTime */
,
sizeof
(
ULONG
)
/* ProcessPagePriority */
,
40
/* ProcessInstrumentationCallback */
,
0
/* FIXME: sizeof(PROCESS_STACK_ALLOCATION_INFORMATION) ProcessThreadStackAllocation */
,
...
...
@@ -3780,6 +3780,7 @@ static void test_process_info(HANDLE hproc)
case
ProcessHandleCount
:
case
ProcessImageFileName
:
case
ProcessImageInformation
:
case
ProcessCycleTime
:
case
ProcessPagePriority
:
case
ProcessImageFileNameWin32
:
ok
(
status
==
STATUS_SUCCESS
,
"for info %lu expected STATUS_SUCCESS, got %08lx (ret_len %lu)
\n
"
,
i
,
status
,
ret_len
);
...
...
dlls/ntdll/unix/process.c
View file @
c0ffd587
...
...
@@ -1506,6 +1506,25 @@ NTSTATUS WINAPI NtQueryInformationProcess( HANDLE handle, PROCESSINFOCLASS class
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
case
ProcessCycleTime
:
len
=
sizeof
(
PROCESS_CYCLE_TIME_INFORMATION
);
if
(
size
==
len
)
{
if
(
!
info
)
ret
=
STATUS_ACCESS_VIOLATION
;
else
{
PROCESS_CYCLE_TIME_INFORMATION
cycles
;
FIXME
(
"ProcessCycleTime (%p,%p,0x%08x,%p) stub
\n
"
,
handle
,
info
,
(
int
)
size
,
ret_len
);
cycles
.
AccumulatedCycles
=
0
;
cycles
.
CurrentCycleCount
=
0
;
memcpy
(
info
,
&
cycles
,
sizeof
(
PROCESS_CYCLE_TIME_INFORMATION
));
}
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
case
ProcessWineLdtCopy
:
if
(
handle
==
NtCurrentProcess
())
{
...
...
dlls/wow64/process.c
View file @
c0ffd587
...
...
@@ -774,6 +774,7 @@ NTSTATUS WINAPI wow64_NtQueryInformationProcess( UINT *args )
case
ProcessDebugFlags
:
/* ULONG */
case
ProcessExecuteFlags
:
/* ULONG */
case
ProcessCookie
:
/* ULONG */
case
ProcessCycleTime
:
/* PROCESS_CYCLE_TIME_INFORMATION */
/* FIXME: check buffer alignment */
return
NtQueryInformationProcess
(
handle
,
class
,
ptr
,
len
,
retlen
);
...
...
include/winternl.h
View file @
c0ffd587
...
...
@@ -2272,6 +2272,11 @@ typedef struct _PROCESS_PRIORITY_CLASS {
UCHAR
PriorityClass
;
}
PROCESS_PRIORITY_CLASS
,
*
PPROCESS_PRIORITY_CLASS
;
typedef
struct
_PROCESS_CYCLE_TIME_INFORMATION
{
ULONGLONG
AccumulatedCycles
;
ULONGLONG
CurrentCycleCount
;
}
PROCESS_CYCLE_TIME_INFORMATION
,
*
PPROCESS_CYCLE_TIME_INFORMATION
;
typedef
struct
_PROCESS_STACK_ALLOCATION_INFORMATION
{
SIZE_T
ReserveSize
;
...
...
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