How to get copy message?
-
I need to know when a copy event occurs in the explorer. I think I must set a global hook using SetWindowsHookEx API. But which type of hook it has to be?
:rose:
-
I need to know when a copy event occurs in the explorer. I think I must set a global hook using SetWindowsHookEx API. But which type of hook it has to be?
:rose:
You can write an
ICopyHook
shell extension to get those notifications.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
You can write an
ICopyHook
shell extension to get those notifications.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
That seems to work only for folders. I want my application to know immediately when user is copying one or more files. Will a clipboard hook help? Is there any other way to do this?
:rose:
-
That seems to work only for folders. I want my application to know immediately when user is copying one or more files. Will a clipboard hook help? Is there any other way to do this?
:rose:
No, it gets called for any file operations done in Explorer. A copy hook gets registered under a "folder" key but that doesn't mean it works only for folders.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
No, it gets called for any file operations done in Explorer. A copy hook gets registered under a "folder" key but that doesn't mean it works only for folders.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Oh thats cool. Can you point me to some sample article or code? When I searched CP I found one article but there only folder copy operation is handled. My app requirement is like I need to log whenever the user is performing a file copy in the explorer. Thanks.
:rose:
-
Oh thats cool. Can you point me to some sample article or code? When I searched CP I found one article but there only folder copy operation is handled. My app requirement is like I need to log whenever the user is performing a file copy in the explorer. Thanks.
:rose:
I don't have any sample code of my own... give Google's code search[^] a try.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ