Change MiniFilter: Is the PreCreate operation comment correct?
Author: johnwallsmsftCreated Jan 10, 2025Updated Apr 28, 2026
Labelsquestion
Is the following comment in the example Change MiniFilter CgPreCreate method correct?
// // Return FLT_PREOP_SYNCHRONIZE at PreCreate due to // some callback of PostCreate may be at DPC level. // eResource is required at level < DPC. //
The Microsoft documentation mentions that PostCreate will always be called at PASSIVE_LEVEL - ref.
Also, the Microsoft documentation specifically for FLT_PREOP_SYNCHRONIZE states that PreCreate shouldn't return FLT_PREOP_SYNCHRONIZE, as Create operations are already synchronized - ref.
I see a comment on this method in the past, but it looks to be targeting a different comment - Issue 151.
Source: microsoft/Windows-driver-samples