I am monitoring the I/O operations of a Win32 application (not written by me) with Process Monitor and trying to replicate the behavior of WriteFile with a C++ program (eg: my WriteFile calls would produce same logs in Process Monitor).
The WriteFile calls are reported with I/O flags "Non-cached, Paging I/O and Synchronous Paging I/O".
Non-cached is easy to replicate : if I add the FILE_FLAG_NO_BUFFERING attribute to CreateFile dwFlagsAndAttributes parameter: all the WriteFile calls will be reported that way.
I am trying to find out what is causing Paging I/O to be seen in Process Monitor and how to replicate it.