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
e50c507c
Commit
e50c507c
authored
Jun 06, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement Wow64GetThreadContext().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b8927cf1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
thread.c
dlls/kernel32/thread.c
+18
-0
winbase.h
include/winbase.h
+1
-0
winternl.h
include/winternl.h
+3
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
e50c507c
...
@@ -1600,7 +1600,7 @@
...
@@ -1600,7 +1600,7 @@
@ stdcall WinExec(str long)
@ stdcall WinExec(str long)
@ stdcall Wow64EnableWow64FsRedirection(long)
@ stdcall Wow64EnableWow64FsRedirection(long)
@ stdcall Wow64DisableWow64FsRedirection(ptr)
@ stdcall Wow64DisableWow64FsRedirection(ptr)
# @ stub Wow64GetThreadContext
@ stdcall Wow64GetThreadContext(long ptr)
# @ stub Wow64GetThreadSelectorEntry
# @ stub Wow64GetThreadSelectorEntry
@ stdcall Wow64RevertWow64FsRedirection(ptr)
@ stdcall Wow64RevertWow64FsRedirection(ptr)
# @ stub Wow64SetThreadContext
# @ stub Wow64SetThreadContext
...
...
dlls/kernel32/thread.c
View file @
e50c507c
...
@@ -251,6 +251,24 @@ BOOL WINAPI GetThreadContext( HANDLE handle, /* [in] Handle to thread with
...
@@ -251,6 +251,24 @@ BOOL WINAPI GetThreadContext( HANDLE handle, /* [in] Handle to thread with
}
}
/***********************************************************************
* Wow64GetThreadContext [KERNEL32.@]
*/
BOOL
WINAPI
Wow64GetThreadContext
(
HANDLE
handle
,
WOW64_CONTEXT
*
context
)
{
#ifdef __i386__
NTSTATUS
status
=
NtGetContextThread
(
handle
,
(
CONTEXT
*
)
context
);
#elif defined(__x86_64__)
NTSTATUS
status
=
RtlWow64GetThreadContext
(
handle
,
context
);
#else
NTSTATUS
status
=
STATUS_NOT_IMPLEMENTED
;
FIXME
(
"not implemented on this platform
\n
"
);
#endif
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
!
status
;
}
/**********************************************************************
/**********************************************************************
* SuspendThread [KERNEL32.@] Suspends a thread.
* SuspendThread [KERNEL32.@] Suspends a thread.
*
*
...
...
include/winbase.h
View file @
e50c507c
...
@@ -2706,6 +2706,7 @@ WINBASEAPI VOID WINAPI WakeConditionVariable(PCONDITION_VARIABLE);
...
@@ -2706,6 +2706,7 @@ WINBASEAPI VOID WINAPI WakeConditionVariable(PCONDITION_VARIABLE);
WINBASEAPI
UINT
WINAPI
WinExec
(
LPCSTR
,
UINT
);
WINBASEAPI
UINT
WINAPI
WinExec
(
LPCSTR
,
UINT
);
WINBASEAPI
BOOL
WINAPI
Wow64DisableWow64FsRedirection
(
PVOID
*
);
WINBASEAPI
BOOL
WINAPI
Wow64DisableWow64FsRedirection
(
PVOID
*
);
WINBASEAPI
BOOLEAN
WINAPI
Wow64EnableWow64FsRedirection
(
BOOLEAN
);
WINBASEAPI
BOOLEAN
WINAPI
Wow64EnableWow64FsRedirection
(
BOOLEAN
);
WINBASEAPI
BOOL
WINAPI
Wow64GetThreadContext
(
HANDLE
,
WOW64_CONTEXT
*
);
WINBASEAPI
BOOL
WINAPI
Wow64RevertWow64FsRedirection
(
PVOID
);
WINBASEAPI
BOOL
WINAPI
Wow64RevertWow64FsRedirection
(
PVOID
);
WINADVAPI
DWORD
WINAPI
WriteEncryptedFileRaw
(
PFE_IMPORT_FUNC
,
PVOID
,
PVOID
);
WINADVAPI
DWORD
WINAPI
WriteEncryptedFileRaw
(
PFE_IMPORT_FUNC
,
PVOID
,
PVOID
);
WINBASEAPI
BOOL
WINAPI
WriteFile
(
HANDLE
,
LPCVOID
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
);
WINBASEAPI
BOOL
WINAPI
WriteFile
(
HANDLE
,
LPCVOID
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
);
...
...
include/winternl.h
View file @
e50c507c
...
@@ -2836,6 +2836,9 @@ NTSYSAPI void WINAPI RtlWakeConditionVariable(RTL_CONDITION_VARIABLE *);
...
@@ -2836,6 +2836,9 @@ NTSYSAPI void WINAPI RtlWakeConditionVariable(RTL_CONDITION_VARIABLE *);
NTSYSAPI
NTSTATUS
WINAPI
RtlWalkHeap
(
HANDLE
,
PVOID
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWalkHeap
(
HANDLE
,
PVOID
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64EnableFsRedirection
(
BOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64EnableFsRedirection
(
BOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64EnableFsRedirectionEx
(
ULONG
,
ULONG
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64EnableFsRedirectionEx
(
ULONG
,
ULONG
*
);
#ifdef __x86_64__
NTSYSAPI
NTSTATUS
WINAPI
RtlWow64GetThreadContext
(
HANDLE
,
WOW64_CONTEXT
*
);
#endif
NTSYSAPI
NTSTATUS
WINAPI
RtlWriteRegistryValue
(
ULONG
,
PCWSTR
,
PCWSTR
,
ULONG
,
PVOID
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
RtlWriteRegistryValue
(
ULONG
,
PCWSTR
,
PCWSTR
,
ULONG
,
PVOID
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
RtlZombifyActivationContext
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
RtlZombifyActivationContext
(
HANDLE
);
NTSYSAPI
NTSTATUS
WINAPI
RtlpNtCreateKey
(
PHANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
ULONG
,
const
UNICODE_STRING
*
,
ULONG
,
PULONG
);
NTSYSAPI
NTSTATUS
WINAPI
RtlpNtCreateKey
(
PHANDLE
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
ULONG
,
const
UNICODE_STRING
*
,
ULONG
,
PULONG
);
...
...
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