SwapBuffer doesn't seems to do memory mapping

Hi Folks,

I am trying to understand how to work with a minifilter driver in the context of memory-mapped files. According to Microsoft documentation, it is suggested to use the SwapBuffers technique.

To investigate this, I added debug print statements in all functions related to the SwapBuffer implementation. However, when I open or read a file using Notepad, I do not see any log or print output in the debugger.

Interestingly, when I write or save the file, I do see the appropriate logs being triggered.

So, my question is:

  1. I don't see any read log, do swapbuffer intercept this.
  2. If swapbuffer handles it which part exactly does this.

Any clarification or guidance would be appreciated.