Intercepting the Move command in Windows

2019-08-07 19:09发布

问题:

I am working on a plugin for a document tagging software. I would like to intercept the MOVE operation in Windows explorer , and let the tagging software handle it instead .

I was thinking about Hooks, DLL injection . The MOVE can be initiated by several ways by the user, and I need to intercept all of them.

Does anyone have other ideas. It would be nice if you can post some example links too.

TIA

Sujay

回答1:

Detours is the wrong solution for this problem.

Instead, consider using something like a FileSystemWatcher http://msdn.microsoft.com/en-us/library/x7t1d0ky or a kernel-mode Filesystem filter driver.