How to find the actual file type of Renamed files in minifilter

I have created a file system mini-filter for blocking the access of files based on file types.
But If i change the file type then I can’t block the file with its original file type.
Can i get the original file type of files in minilter
Please help

What do you mean by “file type”? Do you mean the extension in the file name (.docx and so on). Or the attributes (compressed, directory, sparse) or what?

What do you mean by “blocking”? Do you mean denying the create or not allowing reads or what?

@rod_widdowson said:
What do you mean by “file type”? Do you mean the extension in the file name (.docx and so on). Or the attributes (compressed, directory, sparse) or what?

yes ,I need to bock with its extension

What do you mean by “blocking”? Do you mean denying the create or not allowing reads or what?

both,I need to block the file creation and file read write

The file extension is just part of the name - it has no bearing on the data inside the file.
People can rename the file a thousand times, and I doubt it’s advisable for you to keep a history of that.