I'm tracking changed made to file and would like to "remember" and pass some information from the pre-operation callback to the post-operation callback.
What is the best way to do it?
[Edit: The driver should only support Windows 10 everything else is a bonus]
You can simply use the PVOID *CompletionContext in PreOperation to store a pointer to the data you want to pass to the PostOperation. In the PostOperation just use CompletionContext as it will be the data you pointed it to in the PreOperation.
For example: PreOp:
PostOp:
See here for more details.
Good luck,
Gabriel