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
92b2329d
Commit
92b2329d
authored
Aug 19, 2022
by
Santino Mazza
Committed by
Alexandre Julliard
Sep 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Create NtLoadKeyEx syscall stub.
Signed-off-by:
Santino Mazza
<
smazza@codeweavers.com
>
parent
ebbdbff5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
0 deletions
+38
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
loader.c
dlls/ntdll/unix/loader.c
+1
-0
registry.c
dlls/ntdll/unix/registry.c
+10
-0
registry.c
dlls/wow64/registry.c
+24
-0
syscall.h
dlls/wow64/syscall.h
+1
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
92b2329d
...
...
@@ -244,6 +244,7 @@
@ stdcall -syscall NtLoadDriver(ptr)
@ stdcall -syscall NtLoadKey2(ptr ptr long)
@ stdcall -syscall NtLoadKey(ptr ptr)
@ stdcall -syscall NtLoadKeyEx(ptr ptr long long long long ptr ptr)
@ stdcall -syscall NtLockFile(long long ptr ptr ptr ptr ptr ptr long long)
# @ stub NtLockProductActivationKeys
# @ stub NtLockRegistryKey
...
...
dlls/ntdll/unix/loader.c
View file @
92b2329d
...
...
@@ -203,6 +203,7 @@ static void * const syscalls[] =
NtLoadDriver
,
NtLoadKey
,
NtLoadKey2
,
NtLoadKeyEx
,
NtLockFile
,
NtLockVirtualMemory
,
NtMakeTemporaryObject
,
...
...
dlls/ntdll/unix/registry.c
View file @
92b2329d
...
...
@@ -729,6 +729,16 @@ NTSTATUS WINAPI NtLoadKey2( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fi
return
NtLoadKey
(
attr
,
file
);
}
/******************************************************************************
* NtLoadKeyEx (NTDLL.@)
*/
NTSTATUS
WINAPI
NtLoadKeyEx
(
const
OBJECT_ATTRIBUTES
*
attr
,
OBJECT_ATTRIBUTES
*
file
,
ULONG
flags
,
HANDLE
trustkey
,
HANDLE
event
,
ACCESS_MASK
access
,
HANDLE
*
roothandle
,
IO_STATUS_BLOCK
*
iostatus
)
{
FIXME
(
"(%p,%p,0x%08x,%p,%p,0x%08x,%p,%p) stub
\n
"
,
attr
,
file
,
flags
,
trustkey
,
event
,
access
,
roothandle
,
iostatus
);
return
STATUS_NOT_IMPLEMENTED
;
}
/******************************************************************************
* NtUnloadKey (NTDLL.@)
...
...
dlls/wow64/registry.c
View file @
92b2329d
...
...
@@ -181,6 +181,30 @@ NTSTATUS WINAPI wow64_NtLoadKey2( UINT *args )
return
NtLoadKey2
(
objattr_32to64
(
&
attr
,
attr32
),
objattr_32to64
(
&
file
,
file32
),
flags
);
}
/**********************************************************************
* wow64_NtLoadKeyEx
*/
NTSTATUS
WINAPI
wow64_NtLoadKeyEx
(
UINT
*
args
)
{
OBJECT_ATTRIBUTES32
*
attr32
=
get_ptr
(
&
args
);
OBJECT_ATTRIBUTES32
*
file32
=
get_ptr
(
&
args
);
ULONG
flags
=
get_ulong
(
&
args
);
HANDLE
trustkey
=
get_handle
(
&
args
);
HANDLE
event
=
get_handle
(
&
args
);
ACCESS_MASK
desired_access
=
get_ulong
(
&
args
);
HANDLE
*
rootkey
=
get_ptr
(
&
args
);
IO_STATUS_BLOCK32
*
io32
=
get_ptr
(
&
args
);
struct
object_attr64
attr
,
file
;
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
status
=
NtLoadKeyEx
(
objattr_32to64
(
&
attr
,
attr32
),
objattr_32to64
(
&
file
,
file32
),
flags
,
trustkey
,
event
,
desired_access
,
rootkey
,
iosb_32to64
(
&
io
,
io32
)
);
put_iosb
(
io32
,
&
io
);
return
status
;
}
/**********************************************************************
* wow64_NtNotifyChangeKey
...
...
dlls/wow64/syscall.h
View file @
92b2329d
...
...
@@ -104,6 +104,7 @@
SYSCALL_ENTRY( NtLoadDriver ) \
SYSCALL_ENTRY( NtLoadKey ) \
SYSCALL_ENTRY( NtLoadKey2 ) \
SYSCALL_ENTRY( NtLoadKeyEx ) \
SYSCALL_ENTRY( NtLockFile ) \
SYSCALL_ENTRY( NtLockVirtualMemory ) \
SYSCALL_ENTRY( NtMakeTemporaryObject ) \
...
...
include/winternl.h
View file @
92b2329d
...
...
@@ -4024,6 +4024,7 @@ NTSYSAPI NTSTATUS WINAPI NtListenPort(HANDLE,PLPC_MESSAGE);
NTSYSAPI
NTSTATUS
WINAPI
NtLoadDriver
(
const
UNICODE_STRING
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtLoadKey
(
const
OBJECT_ATTRIBUTES
*
,
OBJECT_ATTRIBUTES
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtLoadKey2
(
const
OBJECT_ATTRIBUTES
*
,
OBJECT_ATTRIBUTES
*
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtLoadKeyEx
(
const
OBJECT_ATTRIBUTES
*
,
OBJECT_ATTRIBUTES
*
,
ULONG
,
HANDLE
,
HANDLE
,
ACCESS_MASK
,
HANDLE
*
,
IO_STATUS_BLOCK
*
);
NTSYSAPI
NTSTATUS
WINAPI
NtLockFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
void
*
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
,
PLARGE_INTEGER
,
ULONG
*
,
BOOLEAN
,
BOOLEAN
);
NTSYSAPI
NTSTATUS
WINAPI
NtLockVirtualMemory
(
HANDLE
,
PVOID
*
,
SIZE_T
*
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
NtMakeTemporaryObject
(
HANDLE
);
...
...
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