e.g. hook a write file api so that every process write file must through my function's filter.
I only know a hook function SetWindowsHookEx
but so sad it only hook for global key events.
e.g. hook a write file api so that every process write file must through my function's filter.
I only know a hook function SetWindowsHookEx
but so sad it only hook for global key events.
Not from user mode but you can in kernel mode with a file system filter driver. There's a new model, the Filter Manager Model, which reduces the complexity of developing a file system filter driver. See "Filter Manager and Minifilter Driver Architecture" in the MSDN.