Hello, I'm hoping someone might be able to help out. I've been looking for a few days now for a way to intercept all calls to CreateFile for a specific process name, and force that call to be in shared read only mode. I am aware that most programs lock a file for a reason. I am also aware that the program only reads from the file, and does not need to be locked. I plan on opening the file with read only and locking the file to read only.
I have found many different methods, most if not all being outdated, or I just could not get them to properly override the call.
While it would be very appreciated, I don't need complete source code, and I'm not asking for any hand holding. I just need a nudge in the proper direction!
Thank you for any help you can offer!
NOTE: While the name of the function I want to override is CreateFile, it will actually open an existing file instead of creating a new one.