Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
2aea3368
Commit
2aea3368
authored
Aug 05, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add thunks for ioctl/fsctl syscalls.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7e07d00d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
file.c
dlls/wow64/file.c
+52
-0
syscall.h
dlls/wow64/syscall.h
+2
-0
No files found.
dlls/wow64/file.c
View file @
2aea3368
...
...
@@ -353,6 +353,32 @@ NTSTATUS WINAPI wow64_NtDeleteFile( UINT *args )
/**********************************************************************
* wow64_NtDeviceIoControlFile
*/
NTSTATUS
WINAPI
wow64_NtDeviceIoControlFile
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
HANDLE
event
=
get_handle
(
&
args
);
ULONG
apc
=
get_ulong
(
&
args
);
ULONG
apc_param
=
get_ulong
(
&
args
);
IO_STATUS_BLOCK32
*
io32
=
get_ptr
(
&
args
);
ULONG
code
=
get_ulong
(
&
args
);
void
*
in_buf
=
get_ptr
(
&
args
);
ULONG
in_len
=
get_ulong
(
&
args
);
void
*
out_buf
=
get_ptr
(
&
args
);
ULONG
out_len
=
get_ulong
(
&
args
);
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
status
=
NtDeviceIoControlFile
(
handle
,
event
,
apc_32to64
(
apc
),
apc_param_32to64
(
apc
,
apc_param
),
iosb_32to64
(
&
io
,
io32
),
code
,
in_buf
,
in_len
,
out_buf
,
out_len
);
put_iosb
(
io32
,
&
io
);
return
status
;
}
/**********************************************************************
* wow64_NtFlushBuffersFile
*/
NTSTATUS
WINAPI
wow64_NtFlushBuffersFile
(
UINT
*
args
)
...
...
@@ -370,6 +396,32 @@ NTSTATUS WINAPI wow64_NtFlushBuffersFile( UINT *args )
/**********************************************************************
* wow64_NtFsControlFile
*/
NTSTATUS
WINAPI
wow64_NtFsControlFile
(
UINT
*
args
)
{
HANDLE
handle
=
get_handle
(
&
args
);
HANDLE
event
=
get_handle
(
&
args
);
ULONG
apc
=
get_ulong
(
&
args
);
ULONG
apc_param
=
get_ulong
(
&
args
);
IO_STATUS_BLOCK32
*
io32
=
get_ptr
(
&
args
);
ULONG
code
=
get_ulong
(
&
args
);
void
*
in_buf
=
get_ptr
(
&
args
);
ULONG
in_len
=
get_ulong
(
&
args
);
void
*
out_buf
=
get_ptr
(
&
args
);
ULONG
out_len
=
get_ulong
(
&
args
);
IO_STATUS_BLOCK
io
;
NTSTATUS
status
;
status
=
NtFsControlFile
(
handle
,
event
,
apc_32to64
(
apc
),
apc_param_32to64
(
apc
,
apc_param
),
iosb_32to64
(
&
io
,
io32
),
code
,
in_buf
,
in_len
,
out_buf
,
out_len
);
put_iosb
(
io32
,
&
io
);
return
status
;
}
/**********************************************************************
* wow64_NtLockFile
*/
NTSTATUS
WINAPI
wow64_NtLockFile
(
UINT
*
args
)
...
...
dlls/wow64/syscall.h
View file @
2aea3368
...
...
@@ -75,6 +75,7 @@
SYSCALL_ENTRY( NtDeleteFile ) \
SYSCALL_ENTRY( NtDeleteKey ) \
SYSCALL_ENTRY( NtDeleteValueKey ) \
SYSCALL_ENTRY( NtDeviceIoControlFile ) \
SYSCALL_ENTRY( NtDisplayString ) \
SYSCALL_ENTRY( NtDuplicateObject ) \
SYSCALL_ENTRY( NtDuplicateToken ) \
...
...
@@ -88,6 +89,7 @@
SYSCALL_ENTRY( NtFlushProcessWriteBuffers ) \
SYSCALL_ENTRY( NtFlushVirtualMemory ) \
SYSCALL_ENTRY( NtFreeVirtualMemory ) \
SYSCALL_ENTRY( NtFsControlFile ) \
SYSCALL_ENTRY( NtGetContextThread ) \
SYSCALL_ENTRY( NtGetCurrentProcessorNumber ) \
SYSCALL_ENTRY( NtGetNextThread ) \
...
...
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