none
How do i see IRP information? RRS feed

  • Question

  • How do i set a break point in driver object of a wdm driver and see the irp information ? 

    Thanks 

    Thursday, November 17, 2016 1:04 PM

Answers

  • Well the driver object has no code itself so you cannot set a break point in it.  What you can do is look at the MajorFunction array of the DRIVER_OBJECT and set breakpoints on the dispatch routines.  Knowing that the dispatch routine has two arguments, a pointer to the DEVICE_OBJECT and a pointer to the IRP, look at the second argument of the routine and use !irp.

    Of course if this is a driver you have written just put a breakpoint on a dispatch routine and the look at the IRP as a local parameter.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Thursday, November 17, 2016 2:22 PM
  • https://msdn.microsoft.com/en-us/library/windows/hardware/ff563812(v=vs.85).aspx

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by Thomas Hopes Sunday, November 20, 2016 6:35 AM
    Thursday, November 17, 2016 6:02 PM

All replies

  • Well the driver object has no code itself so you cannot set a break point in it.  What you can do is look at the MajorFunction array of the DRIVER_OBJECT and set breakpoints on the dispatch routines.  Knowing that the dispatch routine has two arguments, a pointer to the DEVICE_OBJECT and a pointer to the IRP, look at the second argument of the routine and use !irp.

    Of course if this is a driver you have written just put a breakpoint on a dispatch routine and the look at the IRP as a local parameter.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Thursday, November 17, 2016 2:22 PM
  • https://msdn.microsoft.com/en-us/library/windows/hardware/ff563812(v=vs.85).aspx

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by Thomas Hopes Sunday, November 20, 2016 6:35 AM
    Thursday, November 17, 2016 6:02 PM