Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log the DeviceIoControl calls of a program on windows

I need to capture the DeviceIoControl() system calls of an application. On linux, strace can be used to analyze all ioctl calls. Is there any similar functionality on windows?

MSDN website recommends a program called "Process Monitor" to analyze the real-time activities of executables. However, "Process Monitor" does not show anything about DeviceIoControl calls.

like image 765
tantuni Avatar asked Mar 30 '12 17:03

tantuni


1 Answers

Have you tried OSR's IRPTracker?

IrpTracker allows you to monitor all I/O request packets (IRPs) on a system without the use of any filter drivers and with no references to any device objects, leaving the PnP system entirely undisturbed. In addition to being able to see the path the IRP takes down the driver stack and its ultimate completion status, a detailed view is available that allows you to see the entire contents of static portion of the IRP and an interpreted view of the current and previous stack locations.

like image 137
Rich Turner Avatar answered Sep 24 '22 18:09

Rich Turner