[httpdisk] Send a few IRP majors to the bus
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 02:43:52 +0000 (21:43 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 02:43:52 +0000 (21:43 -0500)
IRP_MJ_PNP
IRP_MJ_POWER
IRP_MJ_SYSTEM_CONTROL

src/httpdisk/httpdisk.c

index f282e88..e4a8fc5 100644 (file)
@@ -337,11 +337,14 @@ DriverEntry (
         return status;
     }
 
+    DriverObject->MajorFunction[IRP_MJ_PNP] = HttpdiskBusIrp;
+    DriverObject->MajorFunction[IRP_MJ_POWER] = HttpdiskBusIrp;
     DriverObject->MajorFunction[IRP_MJ_CREATE] = HttpdiskIrpCreateClose_;
     DriverObject->MajorFunction[IRP_MJ_CLOSE] = HttpdiskIrpCreateClose_;
     DriverObject->MajorFunction[IRP_MJ_READ] = HttpdiskIrpReadWrite_;
     DriverObject->MajorFunction[IRP_MJ_WRITE] = HttpdiskIrpReadWrite_;
     DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = HttpdiskIrpDevCtl_;
+    DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = HttpdiskBusIrp;
 
     DriverObject->DriverUnload = HttpDiskUnload;
     DriverObject->DriverExtension->AddDevice = HttpdiskBusAttach;