Skip to content

Change MiniFilter: Is the PreCreate operation comment correct? #1249

@johnwallsmsft

Description

@johnwallsmsft

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions