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
12c90b04
Commit
12c90b04
authored
Jul 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Support querying the Wow64 state of other processes.
parent
6056e8a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-0
process.c
dlls/ntdll/process.c
+13
-1
server.c
dlls/ntdll/server.c
+1
-1
No files found.
dlls/ntdll/ntdll_misc.h
View file @
12c90b04
...
...
@@ -71,6 +71,7 @@ extern void virtual_init_threading(void);
/* server support */
extern
timeout_t
server_start_time
;
extern
unsigned
int
server_cpus
;
extern
int
is_wow64
;
extern
void
server_init_process
(
void
);
extern
NTSTATUS
server_init_process_done
(
void
);
...
...
dlls/ntdll/process.c
View file @
12c90b04
...
...
@@ -307,7 +307,19 @@ NTSTATUS WINAPI NtQueryInformationProcess(
case
ProcessWow64Information
:
if
(
ProcessInformationLength
==
sizeof
(
DWORD
))
{
*
(
DWORD
*
)
ProcessInformation
=
is_wow64
;
DWORD
val
=
0
;
if
(
ProcessHandle
==
GetCurrentProcess
())
val
=
is_wow64
;
else
if
(
server_cpus
&
(
1
<<
CPU_x86_64
))
{
SERVER_START_REQ
(
get_process_info
)
{
req
->
handle
=
wine_server_obj_handle
(
ProcessHandle
);
if
(
!
(
ret
=
wine_server_call
(
req
)))
val
=
(
reply
->
cpu
!=
CPU_x86_64
);
}
SERVER_END_REQ
;
}
*
(
DWORD
*
)
ProcessInformation
=
val
;
len
=
sizeof
(
DWORD
);
}
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
...
...
dlls/ntdll/server.c
View file @
12c90b04
...
...
@@ -94,7 +94,7 @@ static const enum cpu_type client_cpu = CPU_SPARC;
#error Unsupported CPU
#endif
static
unsigned
int
server_cpus
;
unsigned
int
server_cpus
=
0
;
int
is_wow64
=
FALSE
;
#ifndef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS
...
...
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