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
c0816eab
Commit
c0816eab
authored
Dec 02, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Added IoBuildSynchronousFsdRequest and IoGetAttachedDevice stubs.
parent
d824b1ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
3 deletions
+52
-3
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+50
-1
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+2
-2
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
c0816eab
...
...
@@ -532,6 +532,43 @@ PIRP WINAPI IoBuildDeviceIoControlRequest( ULONG IoControlCode,
}
/**********************************************************
* IoBuildSynchronousFsdRequest (NTOSKRNL.EXE.@)
*/
PIRP
WINAPI
IoBuildSynchronousFsdRequest
(
ULONG
majorfunc
,
PDEVICE_OBJECT
device
,
PVOID
buffer
,
ULONG
length
,
PLARGE_INTEGER
startoffset
,
PKEVENT
event
,
PIO_STATUS_BLOCK
iosb
)
{
PIRP
irp
;
struct
IrpInstance
*
instance
;
PIO_STACK_LOCATION
irpsp
;
FIXME
(
"(%d %p %p %d %p %p %p) stub
\n
"
,
majorfunc
,
device
,
buffer
,
length
,
startoffset
,
event
,
iosb
);
irp
=
IoAllocateIrp
(
device
->
StackSize
,
FALSE
);
if
(
irp
==
NULL
)
return
NULL
;
instance
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
IrpInstance
)
);
if
(
instance
==
NULL
)
{
IoFreeIrp
(
irp
);
return
NULL
;
}
instance
->
irp
=
irp
;
list_add_tail
(
&
Irps
,
&
instance
->
entry
);
irpsp
=
IoGetNextIrpStackLocation
(
irp
);
irpsp
->
MajorFunction
=
majorfunc
;
/*irpsp->Parameters.DeviceIoControl.IoControlCode = IoControlCode;*/
irp
->
UserIosb
=
iosb
;
irp
->
UserEvent
=
event
;
irp
->
UserBuffer
=
buffer
;
return
irp
;
}
/***********************************************************************
* IoCreateDriver (NTOSKRNL.EXE.@)
*/
...
...
@@ -731,9 +768,21 @@ NTSTATUS WINAPI IoGetDeviceObjectPointer( UNICODE_STRING *name, ACCESS_MASK acc
{
FIXME
(
"stub: %s %x %p %p
\n
"
,
debugstr_us
(
name
),
access
,
file
,
device
);
return
STATUS_NOT_IMPLEMENTED
;
*
file
=
NULL
;
*
device
=
NULL
;
return
STATUS_SUCCESS
;
}
/***********************************************************************
* IoGetAttachedDevice (NTOSKRNL.EXE.@)
*/
PDEVICE_OBJECT
WINAPI
IoGetAttachedDevice
(
PDEVICE_OBJECT
device
)
{
FIXME
(
"stub: %p
\n
"
,
device
);
return
device
;
}
/***********************************************************************
* IoGetDeviceProperty (NTOSKRNL.EXE.@)
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
c0816eab
...
...
@@ -322,7 +322,7 @@
@ stub IoBuildAsynchronousFsdRequest
@ stdcall IoBuildDeviceIoControlRequest(long ptr ptr long ptr long long ptr ptr)
@ stub IoBuildPartialMdl
@ st
ub IoBuildSynchronousFsdRequest
@ st
dcall IoBuildSynchronousFsdRequest(long ptr ptr long ptr ptr ptr)
@ stdcall IoCallDriver(ptr ptr)
@ stub IoCancelFileOpen
@ stub IoCancelIrp
...
...
@@ -373,7 +373,7 @@
@ stdcall IoFreeIrp(ptr)
@ stdcall IoFreeMdl(ptr)
@ stub IoFreeWorkItem
@ st
ub IoGetAttachedDevice
@ st
dcall IoGetAttachedDevice(ptr)
@ stub IoGetAttachedDeviceReference
@ stub IoGetBaseFileSystemDeviceObject
@ stub IoGetBootDiskInformation
...
...
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