Added APC support to NtDeviceIoControlFile().

svn path=/trunk/; revision=758
This commit is contained in:
Eric Kohl 1999-11-07 14:08:11 +00:00
parent 63665d54ed
commit 157d5b3fa2
2 changed files with 8 additions and 6 deletions

View file

@ -21,7 +21,6 @@
Error logging (see io/errlog.c)
Buffer flushing (see io/flush.c)
Io completion ports (see io/iocomp.c)
DeviceIoControl support (see io/ioctrl.c)
File locking (see io/lock.c)
Mailslots (see io/mailslot.c)
Named pipes (see io/npipe.c)

View file

@ -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
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/io/ioctrl.c
@ -9,6 +10,7 @@
* Created 22/05/98
* Filled in ZwDeviceIoControlFile 22/02/99
* Fixed IO method handling 08/03/99
* Added APC support 05/11/99
*/
/* INCLUDES *****************************************************************/
@ -26,9 +28,6 @@ ULONG IoGetFunctionCodeFromCtlCode(ULONG ControlCode)
}
/*
* NOTES: No apc support yet!
*/
NTSTATUS
STDCALL
NtDeviceIoControlFile (
@ -87,7 +86,10 @@ NtDeviceIoControlFile (
FALSE,
&KEvent,
IoStatusBlock);
Irp->Overlay.AsynchronousParameters.UserApcRoutine = UserApcRoutine;
Irp->Overlay.AsynchronousParameters.UserApcContext = UserApcContext;
StackPtr = IoGetNextIrpStackLocation(Irp);
StackPtr->DeviceObject = DeviceObject;
StackPtr->Parameters.DeviceIoControl.InputBufferLength = InputBufferSize;
@ -102,3 +104,4 @@ NtDeviceIoControlFile (
return(Status);
}
/* EOF */