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
9fd54b28
Commit
9fd54b28
authored
Sep 16, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implemented a few information classes in NtQuerySystemInformation.
- Added handle information to (wineserver) process snapshot.
parent
66824e5f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
13 deletions
+28
-13
nt.c
dlls/ntdll/nt.c
+0
-0
server_protocol.h
include/wine/server_protocol.h
+2
-1
winternl.h
include/winternl.h
+13
-12
handle.c
server/handle.c
+6
-0
handle.h
server/handle.h
+2
-0
process.c
server/process.c
+1
-0
process.h
server/process.h
+1
-0
protocol.def
server/protocol.def
+1
-0
snapshot.c
server/snapshot.c
+1
-0
trace.c
server/trace.c
+1
-0
No files found.
dlls/ntdll/nt.c
View file @
9fd54b28
This diff is collapsed.
Click to expand it.
include/wine/server_protocol.h
View file @
9fd54b28
...
...
@@ -1592,6 +1592,7 @@ struct next_process_reply
void
*
module
;
int
threads
;
int
priority
;
int
handles
;
/* VARARG(filename,string); */
};
...
...
@@ -3664,6 +3665,6 @@ union generic_reply
struct
open_token_reply
open_token_reply
;
};
#define SERVER_PROTOCOL_VERSION 12
0
#define SERVER_PROTOCOL_VERSION 12
1
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
include/winternl.h
View file @
9fd54b28
...
...
@@ -482,17 +482,18 @@ typedef struct _UNWIND_HISTORY_TABLE {
/* This is used by NtQuerySystemInformation */
/* FIXME: Isn't THREAD_INFO and THREADINFO the same structure? */
typedef
struct
{
FILETIME
ftCreationTime
;
DWORD
dwUnknown1
;
DWORD
dwStartAddress
;
DWORD
dwOwningPID
;
DWORD
dwThreadID
;
DWORD
dwCurrentPriority
;
DWORD
dwBasePriority
;
DWORD
dwContextSwitches
;
DWORD
dwThreadState
;
DWORD
dwWaitReason
;
DWORD
dwUnknown2
[
5
];
FILETIME
ftKernelTime
;
FILETIME
ftUserTime
;
FILETIME
ftCreateTime
;
DWORD
dwTickCount
;
DWORD
dwStartAddress
;
DWORD
dwOwningPID
;
DWORD
dwThreadID
;
DWORD
dwCurrentPriority
;
DWORD
dwBasePriority
;
DWORD
dwContextSwitches
;
DWORD
dwThreadState
;
DWORD
dwWaitReason
;
}
THREADINFO
,
*
PTHREADINFO
;
/* FIXME: Isn't THREAD_INFO and THREADINFO the same structure? */
...
...
@@ -771,7 +772,7 @@ typedef struct _SYSTEM_PERFORMANCE_INFORMATION {
typedef
struct
_SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
{
#ifdef __WINESRC__
LARGE_INTEGER
liIdleTime
;
DWORD
dwSpare
[
76
];
DWORD
dwSpare
[
10
];
#else
LARGE_INTEGER
IdleTime
;
LARGE_INTEGER
KernelTime
;
...
...
server/handle.c
View file @
9fd54b28
...
...
@@ -503,6 +503,12 @@ obj_handle_t open_object( const struct namespace *namespace, const WCHAR *name,
return
handle
;
}
/* return the size of the handle table of a given process */
unsigned
int
get_handle_table_count
(
struct
process
*
process
)
{
return
process
->
handles
->
count
;
}
/* close a handle */
DECL_HANDLER
(
close_handle
)
{
...
...
server/handle.h
View file @
9fd54b28
...
...
@@ -47,6 +47,8 @@ extern obj_handle_t open_object( const struct namespace *namespace, const WCHAR
extern
obj_handle_t
find_inherited_handle
(
struct
process
*
process
,
const
struct
object_ops
*
ops
);
extern
struct
handle_table
*
alloc_handle_table
(
struct
process
*
process
,
int
count
);
extern
struct
handle_table
*
copy_handle_table
(
struct
process
*
process
,
struct
process
*
parent
);
extern
unsigned
int
get_handle_table_count
(
struct
process
*
process
);
extern
void
close_global_handles
(
void
);
#endif
/* __WINE_SERVER_HANDLE_H */
server/process.c
View file @
9fd54b28
...
...
@@ -845,6 +845,7 @@ struct process_snapshot *process_snap( int *count )
ptr
->
threads
=
process
->
running_threads
;
ptr
->
count
=
process
->
obj
.
refcount
;
ptr
->
priority
=
process
->
priority
;
ptr
->
handles
=
get_handle_table_count
(
process
);
grab_object
(
process
);
ptr
++
;
}
...
...
server/process.h
View file @
9fd54b28
...
...
@@ -86,6 +86,7 @@ struct process_snapshot
int
count
;
/* process refcount */
int
threads
;
/* number of threads */
int
priority
;
/* priority class */
int
handles
;
/* number of handles */
};
struct
module_snapshot
...
...
server/protocol.def
View file @
9fd54b28
...
...
@@ -1175,6 +1175,7 @@ enum char_info_mode
void* module; /* main module */
int threads; /* number of threads */
int priority; /* process priority */
int handles; /* number of handles */
VARARG(filename,string); /* file name of main exe */
@END
...
...
server/snapshot.c
View file @
9fd54b28
...
...
@@ -128,6 +128,7 @@ static int snapshot_next_process( struct snapshot *snapshot, struct next_process
reply
->
module
=
0
;
/* FIXME */
reply
->
threads
=
ptr
->
threads
;
reply
->
priority
=
ptr
->
priority
;
reply
->
handles
=
ptr
->
handles
;
if
(
ptr
->
process
->
exe
.
filename
)
{
size_t
len
=
min
(
ptr
->
process
->
exe
.
namelen
,
get_reply_max_size
()
);
...
...
server/trace.c
View file @
9fd54b28
...
...
@@ -1372,6 +1372,7 @@ static void dump_next_process_reply( const struct next_process_reply *req )
fprintf
(
stderr
,
" module=%p,"
,
req
->
module
);
fprintf
(
stderr
,
" threads=%d,"
,
req
->
threads
);
fprintf
(
stderr
,
" priority=%d,"
,
req
->
priority
);
fprintf
(
stderr
,
" handles=%d,"
,
req
->
handles
);
fprintf
(
stderr
,
" filename="
);
dump_varargs_string
(
cur_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