mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
Added APC support to NtDeviceIoControlFile().
svn path=/trunk/; revision=758
This commit is contained in:
parent
63665d54ed
commit
157d5b3fa2
2 changed files with 8 additions and 6 deletions
|
@ -21,7 +21,6 @@
|
||||||
Error logging (see io/errlog.c)
|
Error logging (see io/errlog.c)
|
||||||
Buffer flushing (see io/flush.c)
|
Buffer flushing (see io/flush.c)
|
||||||
Io completion ports (see io/iocomp.c)
|
Io completion ports (see io/iocomp.c)
|
||||||
DeviceIoControl support (see io/ioctrl.c)
|
|
||||||
File locking (see io/lock.c)
|
File locking (see io/lock.c)
|
||||||
Mailslots (see io/mailslot.c)
|
Mailslots (see io/mailslot.c)
|
||||||
Named pipes (see io/npipe.c)
|
Named pipes (see io/npipe.c)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/*
|
/* $Id: ioctrl.c,v 1.8 1999/11/07 14:07:35 ekohl Exp $
|
||||||
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: ntoskrnl/io/ioctrl.c
|
* FILE: ntoskrnl/io/ioctrl.c
|
||||||
|
@ -9,6 +10,7 @@
|
||||||
* Created 22/05/98
|
* Created 22/05/98
|
||||||
* Filled in ZwDeviceIoControlFile 22/02/99
|
* Filled in ZwDeviceIoControlFile 22/02/99
|
||||||
* Fixed IO method handling 08/03/99
|
* Fixed IO method handling 08/03/99
|
||||||
|
* Added APC support 05/11/99
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *****************************************************************/
|
/* INCLUDES *****************************************************************/
|
||||||
|
@ -26,9 +28,6 @@ ULONG IoGetFunctionCodeFromCtlCode(ULONG ControlCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* NOTES: No apc support yet!
|
|
||||||
*/
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
NtDeviceIoControlFile (
|
NtDeviceIoControlFile (
|
||||||
|
@ -88,6 +87,9 @@ NtDeviceIoControlFile (
|
||||||
&KEvent,
|
&KEvent,
|
||||||
IoStatusBlock);
|
IoStatusBlock);
|
||||||
|
|
||||||
|
Irp->Overlay.AsynchronousParameters.UserApcRoutine = UserApcRoutine;
|
||||||
|
Irp->Overlay.AsynchronousParameters.UserApcContext = UserApcContext;
|
||||||
|
|
||||||
StackPtr = IoGetNextIrpStackLocation(Irp);
|
StackPtr = IoGetNextIrpStackLocation(Irp);
|
||||||
StackPtr->DeviceObject = DeviceObject;
|
StackPtr->DeviceObject = DeviceObject;
|
||||||
StackPtr->Parameters.DeviceIoControl.InputBufferLength = InputBufferSize;
|
StackPtr->Parameters.DeviceIoControl.InputBufferLength = InputBufferSize;
|
||||||
|
@ -102,3 +104,4 @@ NtDeviceIoControlFile (
|
||||||
return(Status);
|
return(Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* EOF */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue