Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.4 KiB

  1. /*
  2. *************************************************************************
  3. * File: SYSCTRL.C
  4. *
  5. * Module: HID1394.SYS
  6. * HID (Human Input Device) minidriver for IEEE 1394 devices.
  7. *
  8. * Copyright (c) 1998 Microsoft Corporation
  9. *
  10. *
  11. * Author: ervinp
  12. *
  13. *************************************************************************
  14. */
  15. #include <wdm.h>
  16. #include <hidport.h>
  17. #include <1394.h>
  18. #include "hid1394.h"
  19. #include "debug.h"
  20. #ifdef ALLOC_PRAGMA
  21. #pragma alloc_text(PAGE, HIDT_SystemControl)
  22. #endif
  23. /*
  24. ************************************************************
  25. * HIDTSystemControl
  26. ************************************************************
  27. *
  28. */
  29. NTSTATUS HIDT_SystemControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
  30. {
  31. NTSTATUS status = STATUS_SUCCESS;
  32. PIO_STACK_LOCATION thisStackLoc;
  33. PAGED_CODE();
  34. // BUGBUG Complete this function
  35. ASSERT(0); // BUGBUG Code coverage
  36. thisStackLoc = IoGetCurrentIrpStackLocation(Irp);
  37. switch(thisStackLoc->Parameters.DeviceIoControl.IoControlCode){
  38. default:
  39. /*
  40. * Note: do not return STATUS_NOT_SUPPORTED;
  41. * If completing the IRP here,
  42. * just keep the default status
  43. * (this allows filter drivers to work).
  44. */
  45. status = Irp->IoStatus.Status;
  46. break;
  47. }
  48. IoCopyCurrentIrpStackLocationToNext(Irp);
  49. status = IoCallDriver(GET_NEXT_DEVICE_OBJECT(DeviceObject), Irp);
  50. return status;
  51. }