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

Home NTFSD
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: https://www.osr.com/osr-learning-library/


What is the sequence of firing of IRP_MJ callback events

santosh_menonsantosh_menon Member Posts: 7

iam new in driver development
i want to know what is the sequence of firing of these events/callbacks which i have declared, i want analaysis files in the directory as soon as user open directory

const FLT_OPERATION_REGISTRATION Callbacks[] = {

{ IRP_MJ_CREATE,
  FLTFL_OPERATION_REGISTRATION_SKIP_PAGING_IO,
  ScannerPreCreate,
  ScannerPostCreate},

  { IRP_MJ_WRITE,
  0,
  NULL,
  PostOperationIrpWrite },

  { IRP_MJ_SET_INFORMATION,
  0,
  PreOperationIrpInfo,
  NULL },

  { IRP_MJ_CLEANUP,
  0,
  PreOperationIrpCleanup,
  PostOperationIrpCleanup },

{ IRP_MJ_OPERATION_END}

};

Comments

  • rod_widdowsonrod_widdowson Member - All Emails Posts: 1,152

    your question sort of makes so sense. You could say "Here are five cars, which one will come first?". Callbacks are called in response to application activity.

    In general an application will open a file (MJ_CREATE), perhaps do some stuff (MJ_WRITE, MJ_SET_INFO) then close the handle (MJ_CLEANUP) then maybe if it has a section or if the file was cached there may be some more activity (MJ_WRITE, MJ_SET_INFO) and finally when the OS gets bored you'll see a MJ_CLOSE.

    But of course there are multiple applications so "any order".

    you should start procmon and look at file activity since it is precisely reporting these activities.

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!
Internals & Software Drivers 30 Nov 2020 LIVE ONLINE
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Developing Minifilters Early 2021 LIVE ONLINE