Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Filemon get file data

buridanburidan Member Posts: 30

// p.s. move this thread

I have a problem in filemon filter driver, not mini-filter.
I need to calculate hash sum of the file, when he was opened and closed.

In post-callback(CompletionRoutine) for IRP_MJ_CREATE, I check status of operation and if it succseed, try to get data of the file by calling
FsRtlCreateSectionForDataScan, and after that, I see BSOD.

In this article and MSDN, wrote that I cant use FsRtlCreateSectionForDataScan routine for this task.

Help me please, tell me how can I get data of the file and what wrong with this logic.

Bugcheck Analysis *
The requested page of kernel data could not be read in. Typically caused by
a bad block in the paging file or disk controller error. Also see
If the error status is 0xC000000E, 0xC000009C, 0xC000009D or 0xC0000185,
it means the disk subsystem has experienced a failure.
If the error status is 0xC000009A, then it means the request failed because
a filesystem failed to make forward progress.
Arg1: 0000000000000004, lock type that was held (value 1,2,3, or PTE address)
Arg2: 0000000000000000, error status (normally i/o status code)
Arg3: ffffd20ab4c05570, current process (virtual address for lock type 3, or PTE)
Arg4: 00000000055e76b0, virtual address that could not be in-paged (or PTE contents if arg1 is a PTE address)


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE