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
a11cdd22
Commit
a11cdd22
authored
May 02, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement IoBuildAsynchronousFsdRequest.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d5a6a267
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
9 deletions
+29
-9
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+27
-8
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
a11cdd22
...
...
@@ -1366,18 +1366,17 @@ PIRP WINAPI IoBuildDeviceIoControlRequest( ULONG code, PDEVICE_OBJECT device,
return
irp
;
}
/**********************************************************
* IoBuildSynchronousFsdRequest (NTOSKRNL.EXE.@)
/***********************************************************************
* IoBuildAsynchronousFsdRequest (NTOSKRNL.EXE.@)
*/
PIRP
WINAPI
IoBuild
SynchronousFsdRequest
(
ULONG
majorfunc
,
PDEVICE_OBJECT
device
,
PVOID
buffer
,
ULONG
length
,
PLARGE_INTEGER
startoffset
,
PKEVENT
event
,
PIO_STATUS_BLOCK
iosb
)
PIRP
WINAPI
IoBuild
AsynchronousFsdRequest
(
ULONG
majorfunc
,
DEVICE_OBJECT
*
device
,
void
*
buffer
,
ULONG
length
,
LARGE_INTEGER
*
startoffset
,
IO_STATUS_BLOCK
*
iosb
)
{
PIRP
irp
;
PIO_STACK_LOCATION
irpsp
;
TRACE
(
"(%d %p %p %d %p %p %p)
\n
"
,
majorfunc
,
device
,
buffer
,
length
,
startoffset
,
event
,
iosb
);
TRACE
(
"(%d %p %p %d %p %p)
\n
"
,
majorfunc
,
device
,
buffer
,
length
,
startoffset
,
iosb
);
if
(
!
(
irp
=
IoAllocateIrp
(
device
->
StackSize
,
FALSE
)))
return
NULL
;
...
...
@@ -1414,11 +1413,31 @@ PIRP WINAPI IoBuildSynchronousFsdRequest(ULONG majorfunc, PDEVICE_OBJECT device,
}
irp
->
RequestorMode
=
KernelMode
;
irp
->
UserIosb
=
iosb
;
irp
->
UserEvent
=
event
;
irp
->
UserEvent
=
NULL
;
irp
->
UserBuffer
=
buffer
;
return
irp
;
}
/***********************************************************************
* IoBuildSynchronousFsdRequest (NTOSKRNL.EXE.@)
*/
PIRP
WINAPI
IoBuildSynchronousFsdRequest
(
ULONG
majorfunc
,
PDEVICE_OBJECT
device
,
PVOID
buffer
,
ULONG
length
,
PLARGE_INTEGER
startoffset
,
PKEVENT
event
,
PIO_STATUS_BLOCK
iosb
)
{
IRP
*
irp
;
TRACE
(
"(%d %p %p %d %p %p)
\n
"
,
majorfunc
,
device
,
buffer
,
length
,
startoffset
,
iosb
);
irp
=
IoBuildAsynchronousFsdRequest
(
majorfunc
,
device
,
buffer
,
length
,
startoffset
,
iosb
);
if
(
!
irp
)
return
NULL
;
irp
->
UserEvent
=
event
;
return
irp
;
}
static
void
build_driver_keypath
(
const
WCHAR
*
name
,
UNICODE_STRING
*
keypath
)
{
static
const
WCHAR
driverW
[]
=
{
'\\'
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
'\\'
,
0
};
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
a11cdd22
...
...
@@ -330,7 +330,7 @@
@ stub IoAttachDeviceByPointer
@ stdcall IoAttachDeviceToDeviceStack(ptr ptr)
@ stub IoAttachDeviceToDeviceStackSafe
@ st
ub IoBuildAsynchronousFsdRequest
@ st
dcall IoBuildAsynchronousFsdRequest(long ptr ptr long ptr ptr)
@ stdcall IoBuildDeviceIoControlRequest(long ptr ptr long ptr long long ptr ptr)
@ stub IoBuildPartialMdl
@ stdcall IoBuildSynchronousFsdRequest(long ptr ptr long ptr ptr ptr)
...
...
include/ddk/wdm.h
View file @
a11cdd22
...
...
@@ -1559,6 +1559,7 @@ PIRP WINAPI IoAllocateIrp(CCHAR,BOOLEAN);
PMDL
WINAPI
IoAllocateMdl
(
PVOID
,
ULONG
,
BOOLEAN
,
BOOLEAN
,
IRP
*
);
PIO_WORKITEM
WINAPI
IoAllocateWorkItem
(
PDEVICE_OBJECT
);
PDEVICE_OBJECT
WINAPI
IoAttachDeviceToDeviceStack
(
PDEVICE_OBJECT
,
PDEVICE_OBJECT
);
PIRP
WINAPI
IoBuildAsynchronousFsdRequest
(
ULONG
,
DEVICE_OBJECT
*
,
void
*
,
ULONG
,
LARGE_INTEGER
*
,
IO_STATUS_BLOCK
*
);
PIRP
WINAPI
IoBuildDeviceIoControlRequest
(
ULONG
,
DEVICE_OBJECT
*
,
PVOID
,
ULONG
,
PVOID
,
ULONG
,
BOOLEAN
,
PKEVENT
,
IO_STATUS_BLOCK
*
);
PIRP
WINAPI
IoBuildSynchronousFsdRequest
(
ULONG
,
DEVICE_OBJECT
*
,
PVOID
,
ULONG
,
PLARGE_INTEGER
,
PKEVENT
,
IO_STATUS_BLOCK
*
);
NTSTATUS
WINAPI
IoCallDriver
(
DEVICE_OBJECT
*
,
IRP
*
);
...
...
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