How to hide specific folder / file using explorer.exe hook

Hey, Im trying to hook specific explorer.exe function to hide specific folder / files. I digged little bit and found that I want to hook to NtQueryDirectoryFile (good?), but:
I have problems with some arguments (PIO_APC_ROUTINE etc.) what requires wdm.h.
After including and compiling I got little bit (huh) of errors (in this wdm.h file).

Is it good way to do it?

Of course I dont want to do any malware content. I need it to hide some stuff from screen-share.
Last edited on
Registered users can post here. Sign in or register to post.