Author: gedmurphy
Date: Fri May 19 08:21:41 2017
New Revision: 74586
URL:
http://svn.reactos.org/svn/reactos?rev=74586&view=rev
Log:
[FLTMGR]
- Add the missing IOCTLs that were added to fltlib
Modified:
trunk/reactos/drivers/filters/fltmgr/Dispatch.c
Modified: trunk/reactos/drivers/filters/fltmgr/Dispatch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filters/fltmgr/Dis…
==============================================================================
--- trunk/reactos/drivers/filters/fltmgr/Dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filters/fltmgr/Dispatch.c [iso-8859-1] Fri May 19 08:21:41 2017
@@ -47,16 +47,48 @@
ControlCode = StackPtr->Parameters.DeviceIoControl.IoControlCode;
switch (ControlCode)
{
- case IOCTL_LOAD_FILTER:
+ case IOCTL_FILTER_LOAD:
Status = HandleLoadUnloadIoctl(DeviceObject, Irp);
break;
- case IOCTL_UNLOAD_FILTER:
+ case IOCTL_FILTER_UNLOAD:
Status = HandleLoadUnloadIoctl(DeviceObject, Irp);
break;
- case IOCTL_FIND_FIRST_FILTER:
- Status = HandleFindFirstIoctl(DeviceObject, Irp);
+ case IOCTL_FILTER_CREATE:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_ATTATCH:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_DETATCH:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_SEND_MESSAGE:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_GET_MESSAGE:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_REPLY_MESSAGE:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_FIND_FIRST:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_FIND_NEXT:
+ Status = STATUS_NOT_SUPPORTED;
+ break;
+
+ case IOCTL_FILTER_GET_INFO:
+ Status = STATUS_NOT_SUPPORTED;
break;
default:
@@ -92,13 +124,14 @@
PFILTER_NAME FilterName;
ULONG BufferLength;
ULONG ControlCode;
+ NTSTATUS Status;
/* Get the IOCTL data from the stack pointer */
StackPtr = IoGetCurrentIrpStackLocation(Irp);
BufferLength = StackPtr->Parameters.DeviceIoControl.InputBufferLength;
ControlCode = StackPtr->Parameters.DeviceIoControl.IoControlCode;
- FLT_ASSERT(ControlCode == IOCTL_LOAD_FILTER || ControlCode == IOCTL_UNLOAD_FILTER);
+ FLT_ASSERT(ControlCode == IOCTL_FILTER_LOAD || ControlCode == IOCTL_FILTER_UNLOAD);
/* Make sure the buffer is valid */
if (BufferLength < sizeof(FILTER_NAME))
@@ -111,19 +144,14 @@
Name.Buffer = (PWCH)((PCHAR)FilterName + FIELD_OFFSET(FILTER_NAME, FilterName[0]));
/* Forward the request to our Flt routines */
- if (ControlCode == IOCTL_LOAD_FILTER)
+ if (ControlCode == IOCTL_FILTER_LOAD)
{
- return FltLoadFilter(&Name);
+ Status = FltLoadFilter(&Name);
}
else
{
- return FltUnloadFilter(&Name);
+ Status = FltUnloadFilter(&Name);
}
+
+ return Status;
}
-
-NTSTATUS
-HandleFindFirstIoctl(_In_ PDEVICE_OBJECT DeviceObject,
- _Inout_ PIRP Irp)
-{
- return STATUS_NOT_SUPPORTED;
-}