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
17716bc7
Commit
17716bc7
authored
Jun 30, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlWow64GetCurrentCpuArea().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c9d23a15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
process.c
dlls/ntdll/process.c
+18
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
17716bc7
...
...
@@ -1075,6 +1075,7 @@
@ stdcall RtlWow64EnableFsRedirection(long)
@ stdcall RtlWow64EnableFsRedirectionEx(long ptr)
@ stdcall -arch=win64 RtlWow64GetCpuAreaInfo(ptr long ptr)
@ stdcall -arch=win64 RtlWow64GetCurrentCpuArea(ptr ptr ptr)
@ stdcall RtlWow64GetCurrentMachine()
@ stdcall RtlWow64GetProcessMachines(long ptr ptr)
@ stdcall -arch=win64 RtlWow64GetThreadContext(long ptr)
...
...
dlls/ntdll/process.c
View file @
17716bc7
...
...
@@ -143,6 +143,24 @@ NTSTATUS WINAPI RtlWow64GetCpuAreaInfo( WOW64_CPURESERVED *cpu, ULONG reserved,
}
/**********************************************************************
* RtlWow64GetCurrentCpuArea (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64GetCurrentCpuArea
(
USHORT
*
machine
,
void
**
context
,
void
**
context_ex
)
{
WOW64_CPU_AREA_INFO
info
;
NTSTATUS
status
;
if
(
!
(
status
=
RtlWow64GetCpuAreaInfo
(
NtCurrentTeb
()
->
TlsSlots
[
WOW64_TLS_CPURESERVED
],
0
,
&
info
)))
{
if
(
machine
)
*
machine
=
info
.
Machine
;
if
(
context
)
*
context
=
info
.
Context
;
if
(
context_ex
)
*
context_ex
=
*
(
void
**
)
info
.
ContextEx
;
}
return
status
;
}
/******************************************************************************
* RtlWow64GetThreadContext (NTDLL.@)
*/
...
...
include/winternl.h
View file @
17716bc7
...
...
@@ -4404,6 +4404,7 @@ NTSYSAPI int __cdecl _strnicmp(LPCSTR,LPCSTR,size_t);
#ifdef _WIN64
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64GetCpuAreaInfo
(
WOW64_CPURESERVED
*
,
ULONG
,
WOW64_CPU_AREA_INFO
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64GetCurrentCpuArea
(
USHORT
*
,
void
**
,
void
**
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64GetThreadContext
(
HANDLE
,
WOW64_CONTEXT
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64SetThreadContext
(
HANDLE
,
const
WOW64_CONTEXT
*
);
#else
...
...
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