I'm trying make an WPF application that I could copy/cut and paste files info and it would copy/move them to a special folder. I know I can get the paths of the files being copied/cut with
var files = Clipboard.GetFileDropList();
But I would like to know, do I need to copy or move the files? I've read something about listening to WM_COPY
and WM_CUT
. And I tried by hooking a Hwnd hook to my window handel and it didn't work, neither WM_COPY
nor WM_CUT
got called. And I tried everyting.
So what's the best way of determining if the files were copied or cut? And some code examples or links would really help a lot.
Thank you.