![]() |
|
[C] Driver crashes on receiving IRP from user-mode program - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Driver crashes on receiving IRP from user-mode program (/showthread.php?tid=6120803) |
Driver crashes on receiving IRP from user-mode program - HardStoN - Nov 10, 2020 Hi, Thats my IOCTL handle function in the driver Code NTSTATUS IOCTL(PDEVICE_OBJECT DeviceObject, PIRP Irp) {And that's my controller Code #include <iostream>The driver loads and unloads successfully but the second i run the controller the driver crashes and i get a blue screen :) Any ideas why? RE: Driver crashes on receiving IRP from user-mode program - cghhhhasd - Nov 10, 2020 I don't write drivers, but take a look at this full IOCTL example code from Microsoft: https://github.com/microsoft/Windows-driver-samples/tree/master/general/ioctl/wdm RE: Driver crashes on receiving IRP from user-mode program - HardStoN - Nov 10, 2020 yeah thank u either way i solved it :) there was a problem with my Irp variables and when i did Code IoCompleteRequest(Irp, IO_NO_INCREMENT); |