Search code examples
c++cwindowsdevice-driver

what type of windows device driver can modify FindFirstFile and FindNextFile?


i need to add some files to results returned by FindFirstFile and FindNextFile under windows. Is this possible by file system filter driver or what type of drivers?

Thank you


Solution

  • You can do this by File System Filter Driver. But you can do this by implementing a system wide API hook. I have not tried it before but you really don't need to take the pains of writing the drivers and making the system unstable in case of spoiling the driver stack.

    System Wide API Hooking

    API Hooking Revealed