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
b20cbd0d
Commit
b20cbd0d
authored
Jul 01, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Return the session id in NtQuerySystemInformation(SystemProcessInformation).
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bf4105b7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
system.c
dlls/ntdll/unix/system.c
+1
-0
server_protocol.h
include/wine/server_protocol.h
+2
-2
process.c
server/process.c
+1
-0
protocol.def
server/protocol.def
+1
-1
trace.c
server/trace.c
+2
-2
No files found.
dlls/ntdll/unix/system.c
View file @
b20cbd0d
...
...
@@ -2294,6 +2294,7 @@ NTSTATUS WINAPI NtQuerySystemInformation( SYSTEM_INFORMATION_CLASS class,
nt_process
->
dwBasePriority
=
server_process
->
priority
;
nt_process
->
UniqueProcessId
=
UlongToHandle
(
server_process
->
pid
);
nt_process
->
ParentProcessId
=
UlongToHandle
(
server_process
->
parent_pid
);
nt_process
->
SessionId
=
server_process
->
session_id
;
nt_process
->
HandleCount
=
server_process
->
handle_count
;
get_thread_times
(
server_process
->
unix_pid
,
-
1
,
&
nt_process
->
KernelTime
,
&
nt_process
->
UserTime
);
fill_vm_counters
(
&
nt_process
->
vmCounters
,
server_process
->
unix_pid
);
...
...
include/wine/server_protocol.h
View file @
b20cbd0d
...
...
@@ -2010,9 +2010,9 @@ struct process_info
int
priority
;
process_id_t
pid
;
process_id_t
parent_pid
;
unsigned
int
session_id
;
int
handle_count
;
int
unix_pid
;
int
__pad
;
};
...
...
@@ -6252,7 +6252,7 @@ union generic_reply
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 72
2
#define SERVER_PROTOCOL_VERSION 72
3
/* ### protocol_version end ### */
...
...
server/process.c
View file @
b20cbd0d
...
...
@@ -1874,6 +1874,7 @@ DECL_HANDLER(list_processes)
process_info
->
priority
=
process
->
priority
;
process_info
->
pid
=
process
->
id
;
process_info
->
parent_pid
=
process
->
parent_id
;
process_info
->
session_id
=
process
->
session_id
;
process_info
->
handle_count
=
get_handle_table_count
(
process
);
process_info
->
unix_pid
=
process
->
unix_pid
;
pos
+=
sizeof
(
*
process_info
);
...
...
server/protocol.def
View file @
b20cbd0d
...
...
@@ -1609,9 +1609,9 @@ struct process_info
int priority;
process_id_t pid;
process_id_t parent_pid;
unsigned int session_id;
int handle_count;
int unix_pid;
int __pad;
/* VARARG(name,unicode_str,name_len); */
/* VARARG(threads,struct thread_info,thread_count); */
};
...
...
server/trace.c
View file @
b20cbd0d
...
...
@@ -1220,9 +1220,9 @@ static void dump_varargs_process_info( const char *prefix, data_size_t size )
if
(
size
-
pos
<
sizeof
(
*
process
))
break
;
if
(
pos
)
fputc
(
','
,
stderr
);
dump_timeout
(
"{start_time="
,
&
process
->
start_time
);
fprintf
(
stderr
,
",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,handle_count=%u,unix_pid=%d,"
,
fprintf
(
stderr
,
",thread_count=%u,priority=%d,pid=%04x,parent_pid=%04x,
session_id=%08x,
handle_count=%u,unix_pid=%d,"
,
process
->
thread_count
,
process
->
priority
,
process
->
pid
,
process
->
parent_pid
,
process
->
handle_count
,
process
->
unix_pid
);
process
->
parent_pid
,
process
->
session_id
,
process
->
handle_count
,
process
->
unix_pid
);
pos
+=
sizeof
(
*
process
);
pos
=
dump_inline_unicode_string
(
"name=L
\"
"
,
pos
,
process
->
name_len
,
size
);
...
...
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