I have an app, which writes to files some text data. What I'm trying to do is to hook the writing process. I hooked with MS Detours, CreateFile, WriteFile and WriteFileEx functions. CreateFile catches creation/opening of these text files properly, but WriteFile's hooks doesn't. It catches many other things but not these. Hooks are working properly. I've checked them.
Also Process Monitor shows these writing operations as WriteFile operation (adv names IRP_MJ_WRITE and FASTIO_WRITE), just like when I'm writing something myself (with my operation hook works properly)
What's going on here? Is there any other way to write something to file than WriteFile?