Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanara.PInvoke.Shell32 and IStorageProviderCopyHook #252

Closed
Blair88 opened this issue Nov 8, 2021 · 4 comments
Closed

Vanara.PInvoke.Shell32 and IStorageProviderCopyHook #252

Blair88 opened this issue Nov 8, 2021 · 4 comments

Comments

@Blair88
Copy link

Blair88 commented Nov 8, 2021

Is your feature request related to a problem? Please describe.
I'm currently trying to implement a cloud sync engine using Vanara.PInvoke.CldApi and found out that I am unable to invoke a copy hook handler (ICopyHook) from Vanara.PInvoke.Shell32 on folders that are being managed by a cloud provider.

As I am new to the Vanara project and also the CloudAPI, I might be doing something wrong but I followed the references from Microsoft and was able to register a copy hook handler. However, it does not get invoked at all so I searched for solutions and found IStorageProviderCopyHook. From what I read it seems that this is actually the intended method for invoking copy hook handlers on folders managed by a cloud provider.

I looked through all the libraries supported by Vanara and also did a git search but was unable to find anything related to IStorageProviderCopyHook. If it exists, I'd be grateful if someone could point me to it.

Describe the additions or enhancements you'd like
Would it be possible to add the IStorageProviderCopyHook interface to Vanara.PInvoke.Shell32 in order to be able to install a CopyHook handler for folders located under a cloud provider's sync root from the CloudAPI.

Previous work
I'm not aware of any previous work on this issue.

@dahall
Copy link
Owner

dahall commented Nov 8, 2021

It is committed and will go out in the next release. While you wait, you can pull the current build from AppVeyor as described in README.md.

@dahall dahall closed this as completed Nov 8, 2021
@Blair88
Copy link
Author

Blair88 commented Nov 10, 2021

This is perfect, thank you very much for your quick reply.

@dmitryshunkov
Copy link

dmitryshunkov commented Mar 12, 2023

@Blair88, have you been successful with the implementation? I tried to get the IStorageProviderCopyHook implementation to work, but the CopyCallback method isn't invoked for some reason, only a constructor and a destructor.

@wangfu91
Copy link

@dmitryshunkov IStorageProviderCopyHook only work on folders, renaming a file won't trigger the CopyCallback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants