ntoskrnl.exe: Add IoDetachDevice implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-05-27 14:37:46 +02:00 committed by Alexandre Julliard
parent 7dc42119b4
commit e0e795cfe9
3 changed files with 6 additions and 1 deletions

View File

@ -1222,6 +1222,10 @@ void WINAPI IoQueueWorkItem( PIO_WORKITEM work_item, PIO_WORKITEM_ROUTINE worker
TrySubmitThreadpoolCallback( run_work_item_worker, work_item, NULL ); TrySubmitThreadpoolCallback( run_work_item_worker, work_item, NULL );
} }
void WINAPI IoDetachDevice( DEVICE_OBJECT *device )
{
device->AttachedDevice = NULL;
}
/*********************************************************************** /***********************************************************************
* IoAttachDeviceToDeviceStack (NTOSKRNL.EXE.@) * IoAttachDeviceToDeviceStack (NTOSKRNL.EXE.@)

View File

@ -369,7 +369,7 @@
@ stdcall IoDeleteDevice(ptr) @ stdcall IoDeleteDevice(ptr)
@ stdcall IoDeleteDriver(ptr) @ stdcall IoDeleteDriver(ptr)
@ stdcall IoDeleteSymbolicLink(ptr) @ stdcall IoDeleteSymbolicLink(ptr)
@ stub IoDetachDevice @ stdcall IoDetachDevice(ptr)
@ stub IoDeviceHandlerObjectSize @ stub IoDeviceHandlerObjectSize
@ stub IoDeviceHandlerObjectType @ stub IoDeviceHandlerObjectType
@ extern IoDeviceObjectType @ extern IoDeviceObjectType

View File

@ -1561,6 +1561,7 @@ PVOID WINAPI IoAllocateErrorLogEntry(PVOID,UCHAR);
PIRP WINAPI IoAllocateIrp(CCHAR,BOOLEAN); PIRP WINAPI IoAllocateIrp(CCHAR,BOOLEAN);
PMDL WINAPI IoAllocateMdl(PVOID,ULONG,BOOLEAN,BOOLEAN,IRP*); PMDL WINAPI IoAllocateMdl(PVOID,ULONG,BOOLEAN,BOOLEAN,IRP*);
PIO_WORKITEM WINAPI IoAllocateWorkItem(PDEVICE_OBJECT); PIO_WORKITEM WINAPI IoAllocateWorkItem(PDEVICE_OBJECT);
void WINAPI IoDetachDevice(PDEVICE_OBJECT);
PDEVICE_OBJECT WINAPI IoAttachDeviceToDeviceStack(PDEVICE_OBJECT,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 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 IoBuildDeviceIoControlRequest(ULONG,DEVICE_OBJECT*,PVOID,ULONG,PVOID,ULONG,BOOLEAN,PKEVENT,IO_STATUS_BLOCK*);