[httpdisk] Debug-messages for a few more PnP IRP types
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 09:43:59 +0000 (04:43 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 09:43:59 +0000 (04:43 -0500)
src/httpdisk/httpdisk.c

index 3c18c6c..e25b7c4 100644 (file)
@@ -942,9 +942,29 @@ static NTSTATUS HttpdiskIrpPnp_(IN PDEVICE_OBJECT dev_obj, IN PIRP irp) {
 
     minor = IoGetCurrentIrpStackLocation(irp)->MinorFunction;
     switch (minor) {
+        case IRP_MN_QUERY_CAPABILITIES:
+          DBG("IRP_MN_QUERY_CAPABILITIES for dev %p.\n", dev);
+          return WvlIrpComplete(irp, 0, STATUS_NOT_SUPPORTED);
+
+        case IRP_MN_QUERY_RESOURCES:
+          DBG("IRP_MN_QUERY_RESOURCES for dev %p.\n", dev);
+          return WvlIrpComplete(irp, 0, STATUS_NOT_SUPPORTED);
+
+        case IRP_MN_QUERY_RESOURCE_REQUIREMENTS:
+          DBG("IRP_MN_QUERY_RESOURCE_REQUIREMENTS for dev %p.\n", dev);
+          return WvlIrpComplete(irp, 0, STATUS_NOT_SUPPORTED);
+
+        case IRP_MN_QUERY_DEVICE_TEXT:
+          DBG("IRP_MN_QUERY_DEVICE_TEXT for dev %p.\n", dev);
+          return WvlIrpComplete(irp, 0, STATUS_NOT_SUPPORTED);
+
         case IRP_MN_QUERY_ID:
           return HttpdiskIrpPnpQueryId_(dev, irp);
 
+        case IRP_MN_QUERY_BUS_INFORMATION:
+          DBG("IRP_MN_QUERY_BUS_INFORMATION for dev %p.\n", dev);
+          return WvlIrpComplete(irp, 0, STATUS_NOT_SUPPORTED);
+
         default:
           DBG("Unhandled minor: %d\n", minor);
           break;