I'm trying out some different ideas for how to implement my latest project, and i've started looking into the possibility of intercepting certain file operations and handling them myself, as opposed to letting windows do it - or alternativly block the operation while I do some processing (probably the best option actually).
As an example of what I am trying to achieve, say a user has a networked drive attached, called D:
They want to copy fileA to D: , so they drag and drop it onto the D: icon in explorer.
Usually windows would then copy the file over, and thats it[as far as the user is concerned]. What I want to do is when the user drags the file over and drops it, to be able to intercept that event and present the user with some extra options before continuing. To keep things simple for now, we'll say a confirmation box to make sure they want to copy the file.
Now I know that I can monitor folders etc with the 'fileSystemWatcher', but as far as I know that doesn't let me put a block on the actual operation while I execute my code, or abort the operation itself.
I'll keep looking for a way, but if anyone has any ideas or can point me to a class that can do this I'd be grateful, I know we have a couple of .NET experts on here
Thanks in advance,
Spud/Pete
[edit] I should add that i'd prefer to do this all using .NET libraries or pure c# if possible, rather than having to mess about with COM interop to get it done..but if thats the only way then so be it ;/