FileHide is a minifiter driver that allows you to hide your files or directories
Tested on Windows 10 21H2 and 22H2
modify the TARGET_FILE(file/directory name only) and TARGET_FOLDER(parent directory of the file to hide) in 'main.h'
programs like explorer use functions like NtQueryDirectoryFile to obtain information about directories and their contents
the corresponding sent IRP is IRP_MJ_DIRECTORY_CONTROL with MinorFunction of IRP_MN_QUERY
we register both pre and post filters for IRP_MJ_DIRECTORY_CONTROL
the pre filter is responsible to reduce overhead by filtering out uninteresting directory controls and returning FLT_PREOP_SUCCESS_NO_CALLBACK
the post filter , which is invoked only for directory queries we care about , is responsible for parsing the query results buffer structure and removing the file we wish to hide
before loading FileHide
after loading FileHide