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
44eac154
Commit
44eac154
authored
Jul 26, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add thunks for the registry value syscalls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4307429b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
0 deletions
+91
-0
registry.c
dlls/wow64/registry.c
+86
-0
syscall.h
dlls/wow64/syscall.h
+5
-0
No files found.
dlls/wow64/registry.c
View file @
44eac154
...
...
@@ -27,6 +27,9 @@
#include "winnt.h"
#include "winternl.h"
#include "wow64_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wow
);
/**********************************************************************
...
...
@@ -94,6 +97,20 @@ NTSTATUS WINAPI wow64_NtDeleteKey( UINT *args )
/**********************************************************************
* wow64_NtDeleteValueKey
*/
NTSTATUS
WINAPI
wow64_NtDeleteValueKey
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
UNICODE_STRING32
*
str32
=
get_ptr
(
&
args
);
UNICODE_STRING
str
;
return
NtDeleteValueKey
(
handle
,
unicode_str_32to64
(
&
str
,
str32
));
}
/**********************************************************************
* wow64_NtEnumerateKey
*/
NTSTATUS
WINAPI
wow64_NtEnumerateKey
(
UINT
*
args
)
...
...
@@ -110,6 +127,22 @@ NTSTATUS WINAPI wow64_NtEnumerateKey( UINT *args )
/**********************************************************************
* wow64_NtEnumerateValueKey
*/
NTSTATUS
WINAPI
wow64_NtEnumerateValueKey
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
ULONG
index
=
get_ulong
(
&
args
);
KEY_VALUE_INFORMATION_CLASS
class
=
get_ulong
(
&
args
);
void
*
ptr
=
get_ptr
(
&
args
);
ULONG
len
=
get_ulong
(
&
args
);
ULONG
*
retlen
=
get_ptr
(
&
args
);
return
NtEnumerateValueKey
(
handle
,
index
,
class
,
ptr
,
len
,
retlen
);
}
/**********************************************************************
* wow64_NtOpenKey
*/
NTSTATUS
WINAPI
wow64_NtOpenKey
(
UINT
*
args
)
...
...
@@ -209,6 +242,41 @@ NTSTATUS WINAPI wow64_NtQueryKey( UINT *args )
/**********************************************************************
* wow64_NtQueryMultipleValueKey
*/
NTSTATUS
WINAPI
wow64_NtQueryMultipleValueKey
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
KEY_MULTIPLE_VALUE_INFORMATION
*
info
=
get_ptr
(
&
args
);
ULONG
count
=
get_ulong
(
&
args
);
void
*
ptr
=
get_ptr
(
&
args
);
ULONG
len
=
get_ulong
(
&
args
);
ULONG
*
retlen
=
get_ptr
(
&
args
);
FIXME
(
"%p %p %u %p %u %p: stub
\n
"
,
handle
,
info
,
count
,
ptr
,
len
,
retlen
);
return
STATUS_SUCCESS
;
}
/**********************************************************************
* wow64_NtQueryValueKey
*/
NTSTATUS
WINAPI
wow64_NtQueryValueKey
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
UNICODE_STRING32
*
str32
=
get_ptr
(
&
args
);
KEY_VALUE_INFORMATION_CLASS
class
=
get_ulong
(
&
args
);
void
*
ptr
=
get_ptr
(
&
args
);
ULONG
len
=
get_ulong
(
&
args
);
ULONG
*
retlen
=
get_ptr
(
&
args
);
UNICODE_STRING
str
;
return
NtQueryValueKey
(
handle
,
unicode_str_32to64
(
&
str
,
str32
),
class
,
ptr
,
len
,
retlen
);
}
/**********************************************************************
* wow64_NtRenameKey
*/
NTSTATUS
WINAPI
wow64_NtRenameKey
(
UINT
*
args
)
...
...
@@ -249,3 +317,21 @@ NTSTATUS WINAPI wow64_NtSetInformationKey( UINT *args )
return
NtSetInformationKey
(
handle
,
class
,
info
,
len
);
}
/**********************************************************************
* wow64_NtSetValueKey
*/
NTSTATUS
WINAPI
wow64_NtSetValueKey
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
const
UNICODE_STRING32
*
str32
=
get_ptr
(
&
args
);
ULONG
index
=
get_ulong
(
&
args
);
ULONG
type
=
get_ulong
(
&
args
);
const
void
*
data
=
get_ptr
(
&
args
);
ULONG
count
=
get_ulong
(
&
args
);
UNICODE_STRING
str
;
return
NtSetValueKey
(
handle
,
unicode_str_32to64
(
&
str
,
str32
),
index
,
type
,
data
,
count
);
}
dlls/wow64/syscall.h
View file @
44eac154
...
...
@@ -51,8 +51,10 @@
SYSCALL_ENTRY( NtDelayExecution ) \
SYSCALL_ENTRY( NtDeleteAtom ) \
SYSCALL_ENTRY( NtDeleteKey ) \
SYSCALL_ENTRY( NtDeleteValueKey ) \
SYSCALL_ENTRY( NtDuplicateObject ) \
SYSCALL_ENTRY( NtEnumerateKey ) \
SYSCALL_ENTRY( NtEnumerateValueKey ) \
SYSCALL_ENTRY( NtFindAtom ) \
SYSCALL_ENTRY( NtGetCurrentProcessorNumber ) \
SYSCALL_ENTRY( NtListenPort ) \
...
...
@@ -80,6 +82,7 @@
SYSCALL_ENTRY( NtQueryInstallUILanguage ) \
SYSCALL_ENTRY( NtQueryIoCompletion ) \
SYSCALL_ENTRY( NtQueryKey ) \
SYSCALL_ENTRY( NtQueryMultipleValueKey ) \
SYSCALL_ENTRY( NtQueryMutant ) \
SYSCALL_ENTRY( NtQueryObject ) \
SYSCALL_ENTRY( NtQueryPerformanceCounter ) \
...
...
@@ -88,6 +91,7 @@
SYSCALL_ENTRY( NtQuerySymbolicLinkObject ) \
SYSCALL_ENTRY( NtQueryTimer ) \
SYSCALL_ENTRY( NtQueryTimerResolution ) \
SYSCALL_ENTRY( NtQueryValueKey ) \
SYSCALL_ENTRY( NtReleaseKeyedEvent ) \
SYSCALL_ENTRY( NtReleaseMutant ) \
SYSCALL_ENTRY( NtReleaseSemaphore ) \
...
...
@@ -107,6 +111,7 @@
SYSCALL_ENTRY( NtSetPowerRequest ) \
SYSCALL_ENTRY( NtSetTimer ) \
SYSCALL_ENTRY( NtSetTimerResolution ) \
SYSCALL_ENTRY( NtSetValueKey ) \
SYSCALL_ENTRY( NtSignalAndWaitForSingleObject ) \
SYSCALL_ENTRY( NtTerminateJobObject ) \
SYSCALL_ENTRY( NtWaitForDebugEvent ) \
...
...
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