Get access mask of a folder

Is there a way to fetch the 32-bit access mask of a folder or file inside the preoperation callback function of a mini-filter. If it is possible, then is it possible to change it inside a mini-filter
Please help me with this

You’ll need to explain what you mean. Windows has no concept of an access mask.

The permissions we assign to a folder using security descriptor. That is what i mean by access mask

I’d swap this in. Then I’d read this (which I found with 30 seconds googling.